1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +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 @@
/uuid-ossp.sql

View File

@ -2,8 +2,9 @@
MODULE_big = uuid-ossp
OBJS = uuid-ossp.o
DATA_built = uuid-ossp.sql
DATA = uninstall_uuid-ossp.sql
EXTENSION = uuid-ossp
DATA = uuid-ossp--1.0.sql uuid-ossp--unpackaged--1.0.sql
SHLIB_LINK += $(OSSP_UUID_LIBS)

View File

@ -1,16 +0,0 @@
/* contrib/uuid-ossp/uninstall_uuid-ossp.sql */
-- Adjust this setting to control where the objects get dropped.
SET search_path = public;
DROP FUNCTION uuid_nil();
DROP FUNCTION uuid_ns_dns();
DROP FUNCTION uuid_ns_url();
DROP FUNCTION uuid_ns_oid();
DROP FUNCTION uuid_ns_x500();
DROP FUNCTION uuid_generate_v1();
DROP FUNCTION uuid_generate_v1mc();
DROP FUNCTION uuid_generate_v3(namespace uuid, name text);
DROP FUNCTION uuid_generate_v4();
DROP FUNCTION uuid_generate_v5(namespace uuid, name text);

View File

@ -1,7 +1,4 @@
/* contrib/uuid-ossp/uuid-ossp.sql.in */
-- Adjust this setting to control where the objects get created.
SET search_path = public;
/* contrib/uuid-ossp/uuid-ossp--1.0.sql */
CREATE OR REPLACE FUNCTION uuid_nil()
RETURNS uuid

View File

@ -0,0 +1,12 @@
/* contrib/uuid-ossp/uuid-ossp--unpackaged--1.0.sql */
ALTER EXTENSION "uuid-ossp" ADD function uuid_nil();
ALTER EXTENSION "uuid-ossp" ADD function uuid_ns_dns();
ALTER EXTENSION "uuid-ossp" ADD function uuid_ns_url();
ALTER EXTENSION "uuid-ossp" ADD function uuid_ns_oid();
ALTER EXTENSION "uuid-ossp" ADD function uuid_ns_x500();
ALTER EXTENSION "uuid-ossp" ADD function uuid_generate_v1();
ALTER EXTENSION "uuid-ossp" ADD function uuid_generate_v1mc();
ALTER EXTENSION "uuid-ossp" ADD function uuid_generate_v3(namespace uuid, name text);
ALTER EXTENSION "uuid-ossp" ADD function uuid_generate_v4();
ALTER EXTENSION "uuid-ossp" ADD function uuid_generate_v5(namespace uuid, name text);

View File

@ -0,0 +1,5 @@
# uuid-ossp extension
comment = 'generate universally unique identifiers (UUIDs)'
default_version = '1.0'
module_pathname = '$libdir/uuid-ossp'
relocatable = true