Drop "pg" prefix from extension name

This commit is contained in:
Peter Eisentraut 2015-03-12 23:18:58 -04:00
parent ad14a83d51
commit c0a9e988f1
6 changed files with 25 additions and 25 deletions

View File

@ -3,10 +3,10 @@ PKG_CONFIG = pkg-config
extension_version = 0 extension_version = 0
EXTENSION = pguri EXTENSION = uri
MODULE_big = pguri MODULE_big = uri
OBJS = pguri.o OBJS = uri.o
DATA_built = pguri--$(extension_version).sql DATA_built = uri--$(extension_version).sql
ifeq (no,$(shell $(PKG_CONFIG) liburiparser || echo no)) ifeq (no,$(shell $(PKG_CONFIG) liburiparser || echo no))
$(warning liburiparser not registed with pkg-config, build might fail) $(warning liburiparser not registed with pkg-config, build might fail)
@ -21,5 +21,5 @@ REGRESS_OPTS = --inputdir=test
PGXS := $(shell $(PG_CONFIG) --pgxs) PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS) include $(PGXS)
pguri--$(extension_version).sql: pguri.sql uri--$(extension_version).sql: uri.sql
cat $^ >$@ cat $^ >$@

View File

@ -1 +1 @@
CREATE EXTENSION pguri; CREATE EXTENSION uri;

View File

@ -1 +1 @@
CREATE EXTENSION pguri; CREATE EXTENSION uri;

View File

View File

@ -1,4 +1,4 @@
comment = 'uri type' comment = 'uri type'
default_version = 0 default_version = 0
module_pathname = '$libdir/pguri' module_pathname = '$libdir/uri'
relocatable = true relocatable = true

View File

@ -7,13 +7,13 @@ CREATE FUNCTION uri_in(cstring) RETURNS uri
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_out(uri) RETURNS cstring CREATE FUNCTION uri_out(uri) RETURNS cstring
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE TYPE uri ( CREATE TYPE uri (
INTERNALLENGTH = -1, INTERNALLENGTH = -1,
@ -30,92 +30,92 @@ CREATE FUNCTION uri_scheme(uri) RETURNS text
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_userinfo(uri) RETURNS text CREATE FUNCTION uri_userinfo(uri) RETURNS text
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_host(uri) RETURNS text CREATE FUNCTION uri_host(uri) RETURNS text
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_host_inet(uri) RETURNS inet CREATE FUNCTION uri_host_inet(uri) RETURNS inet
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_port(uri) RETURNS integer CREATE FUNCTION uri_port(uri) RETURNS integer
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_query(uri) RETURNS text CREATE FUNCTION uri_query(uri) RETURNS text
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_fragment(uri) RETURNS text CREATE FUNCTION uri_fragment(uri) RETURNS text
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_path(uri) RETURNS text[] CREATE FUNCTION uri_path(uri) RETURNS text[]
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_lt(uri, uri) RETURNS boolean CREATE FUNCTION uri_lt(uri, uri) RETURNS boolean
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_le(uri, uri) RETURNS boolean CREATE FUNCTION uri_le(uri, uri) RETURNS boolean
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_eq(uri, uri) RETURNS boolean CREATE FUNCTION uri_eq(uri, uri) RETURNS boolean
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_ne(uri, uri) RETURNS boolean CREATE FUNCTION uri_ne(uri, uri) RETURNS boolean
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_ge(uri, uri) RETURNS boolean CREATE FUNCTION uri_ge(uri, uri) RETURNS boolean
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_gt(uri, uri) RETURNS boolean CREATE FUNCTION uri_gt(uri, uri) RETURNS boolean
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE FUNCTION uri_cmp(uri, uri) RETURNS integer CREATE FUNCTION uri_cmp(uri, uri) RETURNS integer
IMMUTABLE IMMUTABLE
STRICT STRICT
LANGUAGE C LANGUAGE C
AS '$libdir/pguri'; AS '$libdir/uri';
CREATE OPERATOR < ( CREATE OPERATOR < (
LEFTARG = uri, LEFTARG = uri,