1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Convert contrib modules to use the extension facility.

This isn't fully tested as yet, in particular I'm not sure that the
"foo--unpackaged--1.0.sql" scripts are OK.  But it's time to get some
buildfarm cycles on it.

sepgsql is not converted to an extension, mainly because it seems to
require a very nonstandard installation process.

Dimitri Fontaine and Tom Lane
This commit is contained in:
Tom Lane
2011-02-13 20:06:41 -05:00
parent e693e97d75
commit 629b3af27d
264 changed files with 2026 additions and 2349 deletions

View File

@ -1 +0,0 @@
/adminpack.sql

View File

@ -1,10 +1,11 @@
# contrib/adminpack/Makefile
MODULE_big = adminpack
PG_CPPFLAGS = -I$(libpq_srcdir)
DATA_built = adminpack.sql
DATA = uninstall_adminpack.sql
OBJS = adminpack.o
PG_CPPFLAGS = -I$(libpq_srcdir)
EXTENSION = adminpack
DATA = adminpack--1.0.sql adminpack--unpackaged--1.0.sql
ifdef USE_PGXS
PG_CONFIG = pg_config

View File

@ -1,4 +1,4 @@
/* contrib/adminpack/adminpack.sql.in */
/* contrib/adminpack/adminpack--1.0.sql */
/* ***********************************************
* Administrative functions for PostgreSQL

View File

@ -0,0 +1,10 @@
/* contrib/adminpack/adminpack--unpackaged--1.0.sql */
ALTER EXTENSION adminpack ADD function pg_catalog.pg_file_write(text,text,boolean);
ALTER EXTENSION adminpack ADD function pg_catalog.pg_file_rename(text,text,text);
ALTER EXTENSION adminpack ADD function pg_catalog.pg_file_rename(text,text);
ALTER EXTENSION adminpack ADD function pg_catalog.pg_file_unlink(text);
ALTER EXTENSION adminpack ADD function pg_catalog.pg_logdir_ls();
ALTER EXTENSION adminpack ADD function pg_catalog.pg_file_read(text,bigint,bigint);
ALTER EXTENSION adminpack ADD function pg_catalog.pg_file_length(text);
ALTER EXTENSION adminpack ADD function pg_catalog.pg_logfile_rotate();

View File

@ -0,0 +1,6 @@
# adminpack extension
comment = 'administrative functions for PostgreSQL'
default_version = '1.0'
module_pathname = '$libdir/adminpack'
relocatable = false
schema = pg_catalog

View File

@ -1,10 +0,0 @@
/* contrib/adminpack/uninstall_adminpack.sql */
DROP FUNCTION pg_catalog.pg_file_write(text, text, bool) ;
DROP FUNCTION pg_catalog.pg_file_rename(text, text, text) ;
DROP FUNCTION pg_catalog.pg_file_rename(text, text) ;
DROP FUNCTION pg_catalog.pg_file_unlink(text) ;
DROP FUNCTION pg_catalog.pg_logdir_ls() ;
DROP FUNCTION pg_catalog.pg_file_read(text, bigint, bigint) ;
DROP FUNCTION pg_catalog.pg_file_length(text) ;
DROP FUNCTION pg_catalog.pg_logfile_rotate() ;