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:
1
contrib/uuid-ossp/.gitignore
vendored
1
contrib/uuid-ossp/.gitignore
vendored
@ -1 +0,0 @@
|
||||
/uuid-ossp.sql
|
@ -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)
|
||||
|
||||
|
@ -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);
|
@ -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
|
12
contrib/uuid-ossp/uuid-ossp--unpackaged--1.0.sql
Normal file
12
contrib/uuid-ossp/uuid-ossp--unpackaged--1.0.sql
Normal 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);
|
5
contrib/uuid-ossp/uuid-ossp.control
Normal file
5
contrib/uuid-ossp/uuid-ossp.control
Normal 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
|
Reference in New Issue
Block a user