--- Name: xid_to_int4(xid); Type: FUNCTION; Schema: public; Owner: -
---
-
-CREATE FUNCTION xid_to_int4(xid) RETURNS integer
- LANGUAGE c IMMUTABLE STRICT
- AS '/srv/www/master.osm.compton.nu/db/functions/libpgosm.so', 'xid_to_int4';
-
-
---
--- Name: gist_bit_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_bit_ops USING gist;
-
-
---
--- Name: gist_bit_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_bit_ops
- DEFAULT FOR TYPE bit USING gist AS
- STORAGE gbtreekey_var ,
- OPERATOR 1 <(bit,bit) ,
- OPERATOR 2 <=(bit,bit) ,
- OPERATOR 3 =(bit,bit) ,
- OPERATOR 4 >=(bit,bit) ,
- OPERATOR 5 >(bit,bit) ,
- FUNCTION 1 gbt_bit_consistent(internal,bit,smallint,oid,internal) ,
- FUNCTION 2 gbt_bit_union(bytea,internal) ,
- FUNCTION 3 gbt_bit_compress(internal) ,
- FUNCTION 4 gbt_var_decompress(internal) ,
- FUNCTION 5 gbt_bit_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_bit_picksplit(internal,internal) ,
- FUNCTION 7 gbt_bit_same(internal,internal,internal);
-
-
---
--- Name: gist_bpchar_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_bpchar_ops USING gist;
-
-
---
--- Name: gist_bpchar_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_bpchar_ops
- DEFAULT FOR TYPE character USING gist AS
- STORAGE gbtreekey_var ,
- OPERATOR 1 <(character,character) ,
- OPERATOR 2 <=(character,character) ,
- OPERATOR 3 =(character,character) ,
- OPERATOR 4 >=(character,character) ,
- OPERATOR 5 >(character,character) ,
- FUNCTION 1 gbt_bpchar_consistent(internal,character,smallint,oid,internal) ,
- FUNCTION 2 gbt_text_union(bytea,internal) ,
- FUNCTION 3 gbt_bpchar_compress(internal) ,
- FUNCTION 4 gbt_var_decompress(internal) ,
- FUNCTION 5 gbt_text_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_text_picksplit(internal,internal) ,
- FUNCTION 7 gbt_text_same(internal,internal,internal);
-
-
---
--- Name: gist_bytea_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_bytea_ops USING gist;
-
-
---
--- Name: gist_bytea_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_bytea_ops
- DEFAULT FOR TYPE bytea USING gist AS
- STORAGE gbtreekey_var ,
- OPERATOR 1 <(bytea,bytea) ,
- OPERATOR 2 <=(bytea,bytea) ,
- OPERATOR 3 =(bytea,bytea) ,
- OPERATOR 4 >=(bytea,bytea) ,
- OPERATOR 5 >(bytea,bytea) ,
- FUNCTION 1 gbt_bytea_consistent(internal,bytea,smallint,oid,internal) ,
- FUNCTION 2 gbt_bytea_union(bytea,internal) ,
- FUNCTION 3 gbt_bytea_compress(internal) ,
- FUNCTION 4 gbt_var_decompress(internal) ,
- FUNCTION 5 gbt_bytea_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_bytea_picksplit(internal,internal) ,
- FUNCTION 7 gbt_bytea_same(internal,internal,internal);
-
-
---
--- Name: gist_cash_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_cash_ops USING gist;
-
-
---
--- Name: gist_cash_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_cash_ops
- DEFAULT FOR TYPE money USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(money,money) ,
- OPERATOR 2 <=(money,money) ,
- OPERATOR 3 =(money,money) ,
- OPERATOR 4 >=(money,money) ,
- OPERATOR 5 >(money,money) ,
- FUNCTION 1 gbt_cash_consistent(internal,money,smallint,oid,internal) ,
- FUNCTION 2 gbt_cash_union(bytea,internal) ,
- FUNCTION 3 gbt_cash_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_cash_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_cash_picksplit(internal,internal) ,
- FUNCTION 7 gbt_cash_same(internal,internal,internal);
-
-
---
--- Name: gist_cidr_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_cidr_ops USING gist;
-
-
---
--- Name: gist_cidr_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_cidr_ops
- DEFAULT FOR TYPE cidr USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(inet,inet) ,
- OPERATOR 2 <=(inet,inet) ,
- OPERATOR 3 =(inet,inet) ,
- OPERATOR 4 >=(inet,inet) ,
- OPERATOR 5 >(inet,inet) ,
- FUNCTION 1 gbt_inet_consistent(internal,inet,smallint,oid,internal) ,
- FUNCTION 2 gbt_inet_union(bytea,internal) ,
- FUNCTION 3 gbt_inet_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_inet_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_inet_picksplit(internal,internal) ,
- FUNCTION 7 gbt_inet_same(internal,internal,internal);
-
-
---
--- Name: gist_date_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_date_ops USING gist;
-
-
---
--- Name: gist_date_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_date_ops
- DEFAULT FOR TYPE date USING gist AS
- STORAGE gbtreekey8 ,
- OPERATOR 1 <(date,date) ,
- OPERATOR 2 <=(date,date) ,
- OPERATOR 3 =(date,date) ,
- OPERATOR 4 >=(date,date) ,
- OPERATOR 5 >(date,date) ,
- FUNCTION 1 gbt_date_consistent(internal,date,smallint,oid,internal) ,
- FUNCTION 2 gbt_date_union(bytea,internal) ,
- FUNCTION 3 gbt_date_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_date_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_date_picksplit(internal,internal) ,
- FUNCTION 7 gbt_date_same(internal,internal,internal);
-
-
---
--- Name: gist_float4_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_float4_ops USING gist;
-
-
---
--- Name: gist_float4_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_float4_ops
- DEFAULT FOR TYPE real USING gist AS
- STORAGE gbtreekey8 ,
- OPERATOR 1 <(real,real) ,
- OPERATOR 2 <=(real,real) ,
- OPERATOR 3 =(real,real) ,
- OPERATOR 4 >=(real,real) ,
- OPERATOR 5 >(real,real) ,
- FUNCTION 1 gbt_float4_consistent(internal,real,smallint,oid,internal) ,
- FUNCTION 2 gbt_float4_union(bytea,internal) ,
- FUNCTION 3 gbt_float4_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_float4_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_float4_picksplit(internal,internal) ,
- FUNCTION 7 gbt_float4_same(internal,internal,internal);
-
-
---
--- Name: gist_float8_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_float8_ops USING gist;
-
-
---
--- Name: gist_float8_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_float8_ops
- DEFAULT FOR TYPE double precision USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(double precision,double precision) ,
- OPERATOR 2 <=(double precision,double precision) ,
- OPERATOR 3 =(double precision,double precision) ,
- OPERATOR 4 >=(double precision,double precision) ,
- OPERATOR 5 >(double precision,double precision) ,
- FUNCTION 1 gbt_float8_consistent(internal,double precision,smallint,oid,internal) ,
- FUNCTION 2 gbt_float8_union(bytea,internal) ,
- FUNCTION 3 gbt_float8_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_float8_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_float8_picksplit(internal,internal) ,
- FUNCTION 7 gbt_float8_same(internal,internal,internal);
-
-
---
--- Name: gist_inet_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_inet_ops USING gist;
-
-
---
--- Name: gist_inet_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_inet_ops
- DEFAULT FOR TYPE inet USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(inet,inet) ,
- OPERATOR 2 <=(inet,inet) ,
- OPERATOR 3 =(inet,inet) ,
- OPERATOR 4 >=(inet,inet) ,
- OPERATOR 5 >(inet,inet) ,
- FUNCTION 1 gbt_inet_consistent(internal,inet,smallint,oid,internal) ,
- FUNCTION 2 gbt_inet_union(bytea,internal) ,
- FUNCTION 3 gbt_inet_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_inet_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_inet_picksplit(internal,internal) ,
- FUNCTION 7 gbt_inet_same(internal,internal,internal);
-
-
---
--- Name: gist_int2_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_int2_ops USING gist;
-
-
---
--- Name: gist_int2_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_int2_ops
- DEFAULT FOR TYPE smallint USING gist AS
- STORAGE gbtreekey4 ,
- OPERATOR 1 <(smallint,smallint) ,
- OPERATOR 2 <=(smallint,smallint) ,
- OPERATOR 3 =(smallint,smallint) ,
- OPERATOR 4 >=(smallint,smallint) ,
- OPERATOR 5 >(smallint,smallint) ,
- FUNCTION 1 gbt_int2_consistent(internal,smallint,smallint,oid,internal) ,
- FUNCTION 2 gbt_int2_union(bytea,internal) ,
- FUNCTION 3 gbt_int2_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_int2_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_int2_picksplit(internal,internal) ,
- FUNCTION 7 gbt_int2_same(internal,internal,internal);
-
-
---
--- Name: gist_int4_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_int4_ops USING gist;
-
-
---
--- Name: gist_int4_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_int4_ops
- DEFAULT FOR TYPE integer USING gist AS
- STORAGE gbtreekey8 ,
- OPERATOR 1 <(integer,integer) ,
- OPERATOR 2 <=(integer,integer) ,
- OPERATOR 3 =(integer,integer) ,
- OPERATOR 4 >=(integer,integer) ,
- OPERATOR 5 >(integer,integer) ,
- FUNCTION 1 gbt_int4_consistent(internal,integer,smallint,oid,internal) ,
- FUNCTION 2 gbt_int4_union(bytea,internal) ,
- FUNCTION 3 gbt_int4_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_int4_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_int4_picksplit(internal,internal) ,
- FUNCTION 7 gbt_int4_same(internal,internal,internal);
-
-
---
--- Name: gist_int8_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_int8_ops USING gist;
-
-
---
--- Name: gist_int8_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_int8_ops
- DEFAULT FOR TYPE bigint USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(bigint,bigint) ,
- OPERATOR 2 <=(bigint,bigint) ,
- OPERATOR 3 =(bigint,bigint) ,
- OPERATOR 4 >=(bigint,bigint) ,
- OPERATOR 5 >(bigint,bigint) ,
- FUNCTION 1 gbt_int8_consistent(internal,bigint,smallint,oid,internal) ,
- FUNCTION 2 gbt_int8_union(bytea,internal) ,
- FUNCTION 3 gbt_int8_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_int8_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_int8_picksplit(internal,internal) ,
- FUNCTION 7 gbt_int8_same(internal,internal,internal);
-
-
---
--- Name: gist_interval_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_interval_ops USING gist;
-
-
---
--- Name: gist_interval_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_interval_ops
- DEFAULT FOR TYPE interval USING gist AS
- STORAGE gbtreekey32 ,
- OPERATOR 1 <(interval,interval) ,
- OPERATOR 2 <=(interval,interval) ,
- OPERATOR 3 =(interval,interval) ,
- OPERATOR 4 >=(interval,interval) ,
- OPERATOR 5 >(interval,interval) ,
- FUNCTION 1 gbt_intv_consistent(internal,interval,smallint,oid,internal) ,
- FUNCTION 2 gbt_intv_union(bytea,internal) ,
- FUNCTION 3 gbt_intv_compress(internal) ,
- FUNCTION 4 gbt_intv_decompress(internal) ,
- FUNCTION 5 gbt_intv_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_intv_picksplit(internal,internal) ,
- FUNCTION 7 gbt_intv_same(internal,internal,internal);
-
-
---
--- Name: gist_macaddr_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_macaddr_ops USING gist;
-
-
---
--- Name: gist_macaddr_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_macaddr_ops
- DEFAULT FOR TYPE macaddr USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(macaddr,macaddr) ,
- OPERATOR 2 <=(macaddr,macaddr) ,
- OPERATOR 3 =(macaddr,macaddr) ,
- OPERATOR 4 >=(macaddr,macaddr) ,
- OPERATOR 5 >(macaddr,macaddr) ,
- FUNCTION 1 gbt_macad_consistent(internal,macaddr,smallint,oid,internal) ,
- FUNCTION 2 gbt_macad_union(bytea,internal) ,
- FUNCTION 3 gbt_macad_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_macad_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_macad_picksplit(internal,internal) ,
- FUNCTION 7 gbt_macad_same(internal,internal,internal);
-
-
---
--- Name: gist_numeric_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_numeric_ops USING gist;
-
-
---
--- Name: gist_numeric_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_numeric_ops
- DEFAULT FOR TYPE numeric USING gist AS
- STORAGE gbtreekey_var ,
- OPERATOR 1 <(numeric,numeric) ,
- OPERATOR 2 <=(numeric,numeric) ,
- OPERATOR 3 =(numeric,numeric) ,
- OPERATOR 4 >=(numeric,numeric) ,
- OPERATOR 5 >(numeric,numeric) ,
- FUNCTION 1 gbt_numeric_consistent(internal,numeric,smallint,oid,internal) ,
- FUNCTION 2 gbt_numeric_union(bytea,internal) ,
- FUNCTION 3 gbt_numeric_compress(internal) ,
- FUNCTION 4 gbt_var_decompress(internal) ,
- FUNCTION 5 gbt_numeric_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_numeric_picksplit(internal,internal) ,
- FUNCTION 7 gbt_numeric_same(internal,internal,internal);
-
-
---
--- Name: gist_oid_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_oid_ops USING gist;
-
-
---
--- Name: gist_oid_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_oid_ops
- DEFAULT FOR TYPE oid USING gist AS
- STORAGE gbtreekey8 ,
- OPERATOR 1 <(oid,oid) ,
- OPERATOR 2 <=(oid,oid) ,
- OPERATOR 3 =(oid,oid) ,
- OPERATOR 4 >=(oid,oid) ,
- OPERATOR 5 >(oid,oid) ,
- FUNCTION 1 gbt_oid_consistent(internal,oid,smallint,oid,internal) ,
- FUNCTION 2 gbt_oid_union(bytea,internal) ,
- FUNCTION 3 gbt_oid_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_oid_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_oid_picksplit(internal,internal) ,
- FUNCTION 7 gbt_oid_same(internal,internal,internal);
-
-
---
--- Name: gist_text_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_text_ops USING gist;
-
-
---
--- Name: gist_text_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_text_ops
- DEFAULT FOR TYPE text USING gist AS
- STORAGE gbtreekey_var ,
- OPERATOR 1 <(text,text) ,
- OPERATOR 2 <=(text,text) ,
- OPERATOR 3 =(text,text) ,
- OPERATOR 4 >=(text,text) ,
- OPERATOR 5 >(text,text) ,
- FUNCTION 1 gbt_text_consistent(internal,text,smallint,oid,internal) ,
- FUNCTION 2 gbt_text_union(bytea,internal) ,
- FUNCTION 3 gbt_text_compress(internal) ,
- FUNCTION 4 gbt_var_decompress(internal) ,
- FUNCTION 5 gbt_text_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_text_picksplit(internal,internal) ,
- FUNCTION 7 gbt_text_same(internal,internal,internal);
-
-
---
--- Name: gist_time_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_time_ops USING gist;
-
-
---
--- Name: gist_time_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_time_ops
- DEFAULT FOR TYPE time without time zone USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(time without time zone,time without time zone) ,
- OPERATOR 2 <=(time without time zone,time without time zone) ,
- OPERATOR 3 =(time without time zone,time without time zone) ,
- OPERATOR 4 >=(time without time zone,time without time zone) ,
- OPERATOR 5 >(time without time zone,time without time zone) ,
- FUNCTION 1 gbt_time_consistent(internal,time without time zone,smallint,oid,internal) ,
- FUNCTION 2 gbt_time_union(bytea,internal) ,
- FUNCTION 3 gbt_time_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_time_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_time_picksplit(internal,internal) ,
- FUNCTION 7 gbt_time_same(internal,internal,internal);
-
-
---
--- Name: gist_timestamp_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_timestamp_ops USING gist;
-
-
---
--- Name: gist_timestamp_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_timestamp_ops
- DEFAULT FOR TYPE timestamp without time zone USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(timestamp without time zone,timestamp without time zone) ,
- OPERATOR 2 <=(timestamp without time zone,timestamp without time zone) ,
- OPERATOR 3 =(timestamp without time zone,timestamp without time zone) ,
- OPERATOR 4 >=(timestamp without time zone,timestamp without time zone) ,
- OPERATOR 5 >(timestamp without time zone,timestamp without time zone) ,
- FUNCTION 1 gbt_ts_consistent(internal,timestamp without time zone,smallint,oid,internal) ,
- FUNCTION 2 gbt_ts_union(bytea,internal) ,
- FUNCTION 3 gbt_ts_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_ts_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_ts_picksplit(internal,internal) ,
- FUNCTION 7 gbt_ts_same(internal,internal,internal);
-
-
---
--- Name: gist_timestamptz_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_timestamptz_ops USING gist;
-
-
---
--- Name: gist_timestamptz_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_timestamptz_ops
- DEFAULT FOR TYPE timestamp with time zone USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(timestamp with time zone,timestamp with time zone) ,
- OPERATOR 2 <=(timestamp with time zone,timestamp with time zone) ,
- OPERATOR 3 =(timestamp with time zone,timestamp with time zone) ,
- OPERATOR 4 >=(timestamp with time zone,timestamp with time zone) ,
- OPERATOR 5 >(timestamp with time zone,timestamp with time zone) ,
- FUNCTION 1 gbt_tstz_consistent(internal,timestamp with time zone,smallint,oid,internal) ,
- FUNCTION 2 gbt_ts_union(bytea,internal) ,
- FUNCTION 3 gbt_tstz_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_ts_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_ts_picksplit(internal,internal) ,
- FUNCTION 7 gbt_ts_same(internal,internal,internal);
-
-
---
--- Name: gist_timetz_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_timetz_ops USING gist;
-
-
---
--- Name: gist_timetz_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_timetz_ops
- DEFAULT FOR TYPE time with time zone USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(time with time zone,time with time zone) ,
- OPERATOR 2 <=(time with time zone,time with time zone) ,
- OPERATOR 3 =(time with time zone,time with time zone) ,
- OPERATOR 4 >=(time with time zone,time with time zone) ,
- OPERATOR 5 >(time with time zone,time with time zone) ,
- FUNCTION 1 gbt_timetz_consistent(internal,time with time zone,smallint,oid,internal) ,
- FUNCTION 2 gbt_time_union(bytea,internal) ,
- FUNCTION 3 gbt_timetz_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_time_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_time_picksplit(internal,internal) ,
- FUNCTION 7 gbt_time_same(internal,internal,internal);
-
-
---
--- Name: gist_vbit_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_vbit_ops USING gist;
-
-
---
--- Name: gist_vbit_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_vbit_ops
- DEFAULT FOR TYPE bit varying USING gist AS
- STORAGE gbtreekey_var ,
- OPERATOR 1 <(bit varying,bit varying) ,
- OPERATOR 2 <=(bit varying,bit varying) ,
- OPERATOR 3 =(bit varying,bit varying) ,
- OPERATOR 4 >=(bit varying,bit varying) ,
- OPERATOR 5 >(bit varying,bit varying) ,
- FUNCTION 1 gbt_bit_consistent(internal,bit,smallint,oid,internal) ,
- FUNCTION 2 gbt_bit_union(bytea,internal) ,
- FUNCTION 3 gbt_bit_compress(internal) ,
- FUNCTION 4 gbt_var_decompress(internal) ,
- FUNCTION 5 gbt_bit_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_bit_picksplit(internal,internal) ,
- FUNCTION 7 gbt_bit_same(internal,internal,internal);
-
-
-SET default_tablespace = '';
-
-SET default_with_oids = false;
-
---
--- Name: acls; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE acls (
- id integer NOT NULL,
- address inet,
- k character varying(255) NOT NULL,
- v character varying(255),
- domain character varying(255)
-);
-
-
---
--- Name: acls_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE acls_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: acls_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE acls_id_seq OWNED BY acls.id;
-
-
---
--- Name: changeset_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE changeset_tags (
- changeset_id bigint NOT NULL,
- k character varying(255) DEFAULT ''::character varying NOT NULL,
- v character varying(255) DEFAULT ''::character varying NOT NULL
-);
-
-
---
--- Name: changesets; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE changesets (
- id bigint NOT NULL,
- user_id bigint NOT NULL,
- created_at timestamp without time zone NOT NULL,
- min_lat integer,
- max_lat integer,
- min_lon integer,
- max_lon integer,
- closed_at timestamp without time zone NOT NULL,
- num_changes integer DEFAULT 0 NOT NULL
-);
-
-
---
--- Name: changesets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE changesets_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: changesets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE changesets_id_seq OWNED BY changesets.id;
-
-
---
--- Name: client_applications; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE client_applications (
- id integer NOT NULL,
- name character varying(255),
- url character varying(255),
- support_url character varying(255),
- callback_url character varying(255),
- key character varying(50),
- secret character varying(50),
- user_id integer,
- created_at timestamp without time zone,
- updated_at timestamp without time zone,
- allow_read_prefs boolean DEFAULT false NOT NULL,
- allow_write_prefs boolean DEFAULT false NOT NULL,
- allow_write_diary boolean DEFAULT false NOT NULL,
- allow_write_api boolean DEFAULT false NOT NULL,
- allow_read_gpx boolean DEFAULT false NOT NULL,
- allow_write_gpx boolean DEFAULT false NOT NULL
-);
-
-
---
--- Name: client_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE client_applications_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: client_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE client_applications_id_seq OWNED BY client_applications.id;
-
-
---
--- Name: countries; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE countries (
- id integer NOT NULL,
- code character varying(2) NOT NULL,
- min_lat double precision NOT NULL,
- max_lat double precision NOT NULL,
- min_lon double precision NOT NULL,
- max_lon double precision NOT NULL
-);
-
-
---
--- Name: countries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE countries_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: countries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE countries_id_seq OWNED BY countries.id;
-
-
---
--- Name: current_node_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_node_tags (
- node_id bigint NOT NULL,
- k character varying(255) DEFAULT ''::character varying NOT NULL,
- v character varying(255) DEFAULT ''::character varying NOT NULL
-);
-
-
---
--- Name: current_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_nodes (
- id bigint NOT NULL,
- latitude integer NOT NULL,
- longitude integer NOT NULL,
- changeset_id bigint NOT NULL,
- visible boolean NOT NULL,
- "timestamp" timestamp without time zone NOT NULL,
- tile bigint NOT NULL,
- version bigint NOT NULL
-);
-
-
---
--- Name: current_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE current_nodes_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: current_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE current_nodes_id_seq OWNED BY current_nodes.id;
-
-
---
--- Name: current_relation_members; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_relation_members (
- relation_id bigint NOT NULL,
- member_type nwr_enum NOT NULL,
- member_id bigint NOT NULL,
- member_role character varying(255) NOT NULL,
- sequence_id integer DEFAULT 0 NOT NULL
-);
-
-
---
--- Name: current_relation_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_relation_tags (
- relation_id bigint NOT NULL,
- k character varying(255) DEFAULT ''::character varying NOT NULL,
- v character varying(255) DEFAULT ''::character varying NOT NULL
-);
-
-
---
--- Name: current_relations; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_relations (
- id bigint NOT NULL,
- changeset_id bigint NOT NULL,
- "timestamp" timestamp without time zone NOT NULL,
- visible boolean NOT NULL,
- version bigint NOT NULL
-);
-
-
---
--- Name: current_relations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE current_relations_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: current_relations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE current_relations_id_seq OWNED BY current_relations.id;
-
-
---
--- Name: current_way_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_way_nodes (
- way_id bigint NOT NULL,
- node_id bigint NOT NULL,
- sequence_id bigint NOT NULL
-);
-
-
---
--- Name: current_way_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_way_tags (
- way_id bigint NOT NULL,
- k character varying(255) DEFAULT ''::character varying NOT NULL,
- v character varying(255) DEFAULT ''::character varying NOT NULL
-);
-
-
---
--- Name: current_ways; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_ways (
- id bigint NOT NULL,
- changeset_id bigint NOT NULL,
- "timestamp" timestamp without time zone NOT NULL,
- visible boolean NOT NULL,
- version bigint NOT NULL
-);
-
-
---
--- Name: current_ways_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE current_ways_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: current_ways_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE current_ways_id_seq OWNED BY current_ways.id;
-
-
---
--- Name: diary_comments; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE diary_comments (
- id bigint NOT NULL,
- diary_entry_id bigint NOT NULL,
- user_id bigint NOT NULL,
- body text NOT NULL,
- created_at timestamp without time zone NOT NULL,
- updated_at timestamp without time zone NOT NULL,
- visible boolean DEFAULT true NOT NULL
-);
-
-
---
--- Name: diary_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE diary_comments_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: diary_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE diary_comments_id_seq OWNED BY diary_comments.id;
-
-
---
--- Name: diary_entries; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE diary_entries (
- id bigint NOT NULL,
- user_id bigint NOT NULL,
- title character varying(255) NOT NULL,
- body text NOT NULL,
- created_at timestamp without time zone NOT NULL,
- updated_at timestamp without time zone NOT NULL,
- latitude double precision,
- longitude double precision,
- language_code character varying(255) DEFAULT 'en'::character varying NOT NULL,
- visible boolean DEFAULT true NOT NULL
-);
-
-
---
--- Name: diary_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE diary_entries_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: diary_entries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE diary_entries_id_seq OWNED BY diary_entries.id;
-
-
---
--- Name: friends; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE friends (
- id bigint NOT NULL,
- user_id bigint NOT NULL,
- friend_user_id bigint NOT NULL
-);
-
-
---
--- Name: friends_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE friends_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: friends_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE friends_id_seq OWNED BY friends.id;
-
-
---
--- Name: gps_points; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE gps_points (
- altitude double precision,
- trackid integer NOT NULL,
- latitude integer NOT NULL,
- longitude integer NOT NULL,
- gpx_id bigint NOT NULL,
- "timestamp" timestamp without time zone,
- tile bigint
-);
-
-
---
--- Name: gpx_file_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE gpx_file_tags (
- gpx_id bigint DEFAULT 0 NOT NULL,
- tag character varying(255) NOT NULL,
- id bigint NOT NULL
-);
-
-
---
--- Name: gpx_file_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE gpx_file_tags_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: gpx_file_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE gpx_file_tags_id_seq OWNED BY gpx_file_tags.id;
-
-
---
--- Name: gpx_files; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE gpx_files (
- id bigint NOT NULL,
- user_id bigint NOT NULL,
- visible boolean DEFAULT true NOT NULL,
- name character varying(255) DEFAULT ''::character varying NOT NULL,
- size bigint,
- latitude double precision,
- longitude double precision,
- "timestamp" timestamp without time zone NOT NULL,
- description character varying(255) DEFAULT ''::character varying NOT NULL,
- inserted boolean NOT NULL,
- visibility gpx_visibility_enum DEFAULT 'public'::gpx_visibility_enum NOT NULL
-);
-
-
---
--- Name: gpx_files_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE gpx_files_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: gpx_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE gpx_files_id_seq OWNED BY gpx_files.id;
-
-
---
--- Name: languages; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE languages (
- code character varying(255) NOT NULL,
- english_name character varying(255) NOT NULL,
- native_name character varying(255)
-);
-
-
---
--- Name: messages; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE messages (
- id bigint NOT NULL,
- from_user_id bigint NOT NULL,
- title character varying(255) NOT NULL,
- body text NOT NULL,
- sent_on timestamp without time zone NOT NULL,
- message_read boolean DEFAULT false NOT NULL,
- to_user_id bigint NOT NULL,
- to_user_visible boolean DEFAULT true NOT NULL,
- from_user_visible boolean DEFAULT true NOT NULL
-);
-
-
---
--- Name: messages_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE messages_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE messages_id_seq OWNED BY messages.id;
-
-
---
--- Name: node_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE node_tags (
- node_id bigint NOT NULL,
- version bigint NOT NULL,
- k character varying(255) DEFAULT ''::character varying NOT NULL,
- v character varying(255) DEFAULT ''::character varying NOT NULL
-);