File: pg_rewrite--1.1--1.2.sql

package info (click to toggle)
pg-rewrite 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 352 kB
  • sloc: ansic: 3,146; sql: 199; makefile: 17; sh: 2
file content (24 lines) | stat: -rw-r--r-- 600 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* pg_rewrite--1.1--1.2.sql */

-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION pg_rewrite UPDATE TO '1.2'" to load this file. \quit

DROP FUNCTION partition_table(text, text, text);

CREATE FUNCTION rewrite_table(
       src_table	text,
       dst_table	text,
       src_table_new	text)
RETURNS void
AS 'MODULE_PATHNAME', 'rewrite_table'
LANGUAGE C
STRICT;

CREATE FUNCTION rewrite_table_nowait(
       src_table	text,
       dst_table	text,
       src_table_new	text)
RETURNS void
AS 'MODULE_PATHNAME', 'rewrite_table_nowait'
LANGUAGE C
STRICT;