458857cc9d
We have seen one too many reports of people trying to use 9.1 extension files in the old-fashioned way of sourcing them in psql. Not only does that usually not work (due to failure to substitute for MODULE_PATHNAME and/or @extschema@), but if it did work they'd get a collection of loose objects not an extension. To prevent this, insert an \echo ... \quit line that prints a suitable error message into each extension script file, and teach commands/extension.c to ignore lines starting with \echo. That should not only prevent any adverse consequences of loading a script file the wrong way, but make it crystal clear to users that they need to do it differently now. Tom Lane, following an idea of Andrew Dunstan's. Back-patch into 9.1 ... there is not going to be much value in this if we wait till 9.2.
119 lines
9.9 KiB
SQL
119 lines
9.9 KiB
SQL
/* contrib/btree_gin/btree_gin--unpackaged--1.0.sql */
|
|
|
|
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
|
\echo Use "CREATE EXTENSION btree_gin" to load this file. \quit
|
|
|
|
ALTER EXTENSION btree_gin ADD function gin_btree_consistent(internal,smallint,anyelement,integer,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_int2(smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_int2(smallint,smallint,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_int2(smallint,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family int2_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class int2_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_int4(integer,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_int4(integer,integer,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_int4(integer,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family int4_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class int4_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_int8(bigint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_int8(bigint,bigint,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_int8(bigint,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family int8_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class int8_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_float4(real,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_float4(real,real,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_float4(real,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family float4_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class float4_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_float8(double precision,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_float8(double precision,double precision,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_float8(double precision,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family float8_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class float8_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_money(money,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_money(money,money,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_money(money,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family money_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class money_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_oid(oid,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_oid(oid,oid,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_oid(oid,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family oid_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class oid_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_timestamp(timestamp without time zone,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_timestamp(timestamp without time zone,timestamp without time zone,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_timestamp(timestamp without time zone,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family timestamp_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class timestamp_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_timestamptz(timestamp with time zone,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_timestamptz(timestamp with time zone,timestamp with time zone,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_timestamptz(timestamp with time zone,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family timestamptz_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class timestamptz_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_time(time without time zone,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_time(time without time zone,time without time zone,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_time(time without time zone,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family time_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class time_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_timetz(time with time zone,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_timetz(time with time zone,time with time zone,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_timetz(time with time zone,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family timetz_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class timetz_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_date(date,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_date(date,date,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_date(date,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family date_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class date_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_interval(interval,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_interval(interval,interval,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_interval(interval,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family interval_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class interval_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_macaddr(macaddr,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_macaddr(macaddr,macaddr,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_macaddr(macaddr,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family macaddr_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class macaddr_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_inet(inet,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_inet(inet,inet,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_inet(inet,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family inet_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class inet_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_cidr(cidr,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_cidr(cidr,cidr,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_cidr(cidr,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family cidr_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class cidr_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_text(text,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_text(text,text,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_text(text,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family text_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class text_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator family varchar_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class varchar_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_char("char",internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_char("char","char",smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_char("char",internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family char_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class char_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_bytea(bytea,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_bytea(bytea,bytea,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_bytea(bytea,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family bytea_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class bytea_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_bit(bit,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_bit(bit,bit,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_bit(bit,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family bit_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class bit_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_varbit(bit varying,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_varbit(bit varying,bit varying,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_varbit(bit varying,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD operator family varbit_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class varbit_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_value_numeric(numeric,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_compare_prefix_numeric(numeric,numeric,smallint,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_extract_query_numeric(numeric,internal,smallint,internal,internal);
|
|
ALTER EXTENSION btree_gin ADD function gin_numeric_cmp(numeric,numeric);
|
|
ALTER EXTENSION btree_gin ADD operator family numeric_ops using gin;
|
|
ALTER EXTENSION btree_gin ADD operator class numeric_ops using gin;
|