2 -- PostgreSQL database dump
5 SET statement_timeout = 0;
6 SET client_encoding = 'UTF8';
7 SET standard_conforming_strings = on;
8 SET check_function_bodies = false;
9 SET client_min_messages = warning;
12 -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
15 CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
19 -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
22 COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
25 SET search_path = public, pg_catalog;
28 -- Name: gbtreekey16; Type: SHELL TYPE; Schema: public; Owner: -
31 CREATE TYPE gbtreekey16;
35 -- Name: gbtreekey16_in(cstring); Type: FUNCTION; Schema: public; Owner: -
38 CREATE FUNCTION gbtreekey16_in(cstring) RETURNS gbtreekey16
39 LANGUAGE c IMMUTABLE STRICT
40 AS '$libdir/btree_gist', 'gbtreekey_in';
44 -- Name: gbtreekey16_out(gbtreekey16); Type: FUNCTION; Schema: public; Owner: -
47 CREATE FUNCTION gbtreekey16_out(gbtreekey16) RETURNS cstring
48 LANGUAGE c IMMUTABLE STRICT
49 AS '$libdir/btree_gist', 'gbtreekey_out';
53 -- Name: gbtreekey16; Type: TYPE; Schema: public; Owner: -
56 CREATE TYPE gbtreekey16 (
58 INPUT = gbtreekey16_in,
59 OUTPUT = gbtreekey16_out,
66 -- Name: gbtreekey32; Type: SHELL TYPE; Schema: public; Owner: -
69 CREATE TYPE gbtreekey32;
73 -- Name: gbtreekey32_in(cstring); Type: FUNCTION; Schema: public; Owner: -
76 CREATE FUNCTION gbtreekey32_in(cstring) RETURNS gbtreekey32
77 LANGUAGE c IMMUTABLE STRICT
78 AS '$libdir/btree_gist', 'gbtreekey_in';
82 -- Name: gbtreekey32_out(gbtreekey32); Type: FUNCTION; Schema: public; Owner: -
85 CREATE FUNCTION gbtreekey32_out(gbtreekey32) RETURNS cstring
86 LANGUAGE c IMMUTABLE STRICT
87 AS '$libdir/btree_gist', 'gbtreekey_out';
91 -- Name: gbtreekey32; Type: TYPE; Schema: public; Owner: -
94 CREATE TYPE gbtreekey32 (
96 INPUT = gbtreekey32_in,
97 OUTPUT = gbtreekey32_out,
104 -- Name: gbtreekey4; Type: SHELL TYPE; Schema: public; Owner: -
107 CREATE TYPE gbtreekey4;
111 -- Name: gbtreekey4_in(cstring); Type: FUNCTION; Schema: public; Owner: -
114 CREATE FUNCTION gbtreekey4_in(cstring) RETURNS gbtreekey4
115 LANGUAGE c IMMUTABLE STRICT
116 AS '$libdir/btree_gist', 'gbtreekey_in';
120 -- Name: gbtreekey4_out(gbtreekey4); Type: FUNCTION; Schema: public; Owner: -
123 CREATE FUNCTION gbtreekey4_out(gbtreekey4) RETURNS cstring
124 LANGUAGE c IMMUTABLE STRICT
125 AS '$libdir/btree_gist', 'gbtreekey_out';
129 -- Name: gbtreekey4; Type: TYPE; Schema: public; Owner: -
132 CREATE TYPE gbtreekey4 (
134 INPUT = gbtreekey4_in,
135 OUTPUT = gbtreekey4_out,
142 -- Name: gbtreekey8; Type: SHELL TYPE; Schema: public; Owner: -
145 CREATE TYPE gbtreekey8;
149 -- Name: gbtreekey8_in(cstring); Type: FUNCTION; Schema: public; Owner: -
152 CREATE FUNCTION gbtreekey8_in(cstring) RETURNS gbtreekey8
153 LANGUAGE c IMMUTABLE STRICT
154 AS '$libdir/btree_gist', 'gbtreekey_in';
158 -- Name: gbtreekey8_out(gbtreekey8); Type: FUNCTION; Schema: public; Owner: -
161 CREATE FUNCTION gbtreekey8_out(gbtreekey8) RETURNS cstring
162 LANGUAGE c IMMUTABLE STRICT
163 AS '$libdir/btree_gist', 'gbtreekey_out';
167 -- Name: gbtreekey8; Type: TYPE; Schema: public; Owner: -
170 CREATE TYPE gbtreekey8 (
172 INPUT = gbtreekey8_in,
173 OUTPUT = gbtreekey8_out,
180 -- Name: gbtreekey_var; Type: SHELL TYPE; Schema: public; Owner: -
183 CREATE TYPE gbtreekey_var;
187 -- Name: gbtreekey_var_in(cstring); Type: FUNCTION; Schema: public; Owner: -
190 CREATE FUNCTION gbtreekey_var_in(cstring) RETURNS gbtreekey_var
191 LANGUAGE c IMMUTABLE STRICT
192 AS '$libdir/btree_gist', 'gbtreekey_in';
196 -- Name: gbtreekey_var_out(gbtreekey_var); Type: FUNCTION; Schema: public; Owner: -
199 CREATE FUNCTION gbtreekey_var_out(gbtreekey_var) RETURNS cstring
200 LANGUAGE c IMMUTABLE STRICT
201 AS '$libdir/btree_gist', 'gbtreekey_out';
205 -- Name: gbtreekey_var; Type: TYPE; Schema: public; Owner: -
208 CREATE TYPE gbtreekey_var (
209 INTERNALLENGTH = variable,
210 INPUT = gbtreekey_var_in,
211 OUTPUT = gbtreekey_var_out,
218 -- Name: gpx_visibility_enum; Type: TYPE; Schema: public; Owner: -
221 CREATE TYPE gpx_visibility_enum AS ENUM (
230 -- Name: nwr_enum; Type: TYPE; Schema: public; Owner: -
233 CREATE TYPE nwr_enum AS ENUM (
241 -- Name: user_role_enum; Type: TYPE; Schema: public; Owner: -
244 CREATE TYPE user_role_enum AS ENUM (
251 -- Name: user_status_enum; Type: TYPE; Schema: public; Owner: -
254 CREATE TYPE user_status_enum AS ENUM (
264 -- Name: gbt_bit_compress(internal); Type: FUNCTION; Schema: public; Owner: -
267 CREATE FUNCTION gbt_bit_compress(internal) RETURNS internal
268 LANGUAGE c IMMUTABLE STRICT
269 AS '$libdir/btree_gist', 'gbt_bit_compress';
273 -- Name: gbt_bit_consistent(internal, bit, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
276 CREATE FUNCTION gbt_bit_consistent(internal, bit, smallint, oid, internal) RETURNS boolean
277 LANGUAGE c IMMUTABLE STRICT
278 AS '$libdir/btree_gist', 'gbt_bit_consistent';
282 -- Name: gbt_bit_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
285 CREATE FUNCTION gbt_bit_penalty(internal, internal, internal) RETURNS internal
286 LANGUAGE c IMMUTABLE STRICT
287 AS '$libdir/btree_gist', 'gbt_bit_penalty';
291 -- Name: gbt_bit_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
294 CREATE FUNCTION gbt_bit_picksplit(internal, internal) RETURNS internal
295 LANGUAGE c IMMUTABLE STRICT
296 AS '$libdir/btree_gist', 'gbt_bit_picksplit';
300 -- Name: gbt_bit_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
303 CREATE FUNCTION gbt_bit_same(internal, internal, internal) RETURNS internal
304 LANGUAGE c IMMUTABLE STRICT
305 AS '$libdir/btree_gist', 'gbt_bit_same';
309 -- Name: gbt_bit_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
312 CREATE FUNCTION gbt_bit_union(bytea, internal) RETURNS gbtreekey_var
313 LANGUAGE c IMMUTABLE STRICT
314 AS '$libdir/btree_gist', 'gbt_bit_union';
318 -- Name: gbt_bpchar_compress(internal); Type: FUNCTION; Schema: public; Owner: -
321 CREATE FUNCTION gbt_bpchar_compress(internal) RETURNS internal
322 LANGUAGE c IMMUTABLE STRICT
323 AS '$libdir/btree_gist', 'gbt_bpchar_compress';
327 -- Name: gbt_bpchar_consistent(internal, character, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
330 CREATE FUNCTION gbt_bpchar_consistent(internal, character, smallint, oid, internal) RETURNS boolean
331 LANGUAGE c IMMUTABLE STRICT
332 AS '$libdir/btree_gist', 'gbt_bpchar_consistent';
336 -- Name: gbt_bytea_compress(internal); Type: FUNCTION; Schema: public; Owner: -
339 CREATE FUNCTION gbt_bytea_compress(internal) RETURNS internal
340 LANGUAGE c IMMUTABLE STRICT
341 AS '$libdir/btree_gist', 'gbt_bytea_compress';
345 -- Name: gbt_bytea_consistent(internal, bytea, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
348 CREATE FUNCTION gbt_bytea_consistent(internal, bytea, smallint, oid, internal) RETURNS boolean
349 LANGUAGE c IMMUTABLE STRICT
350 AS '$libdir/btree_gist', 'gbt_bytea_consistent';
354 -- Name: gbt_bytea_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
357 CREATE FUNCTION gbt_bytea_penalty(internal, internal, internal) RETURNS internal
358 LANGUAGE c IMMUTABLE STRICT
359 AS '$libdir/btree_gist', 'gbt_bytea_penalty';
363 -- Name: gbt_bytea_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
366 CREATE FUNCTION gbt_bytea_picksplit(internal, internal) RETURNS internal
367 LANGUAGE c IMMUTABLE STRICT
368 AS '$libdir/btree_gist', 'gbt_bytea_picksplit';
372 -- Name: gbt_bytea_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
375 CREATE FUNCTION gbt_bytea_same(internal, internal, internal) RETURNS internal
376 LANGUAGE c IMMUTABLE STRICT
377 AS '$libdir/btree_gist', 'gbt_bytea_same';
381 -- Name: gbt_bytea_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
384 CREATE FUNCTION gbt_bytea_union(bytea, internal) RETURNS gbtreekey_var
385 LANGUAGE c IMMUTABLE STRICT
386 AS '$libdir/btree_gist', 'gbt_bytea_union';
390 -- Name: gbt_cash_compress(internal); Type: FUNCTION; Schema: public; Owner: -
393 CREATE FUNCTION gbt_cash_compress(internal) RETURNS internal
394 LANGUAGE c IMMUTABLE STRICT
395 AS '$libdir/btree_gist', 'gbt_cash_compress';
399 -- Name: gbt_cash_consistent(internal, money, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
402 CREATE FUNCTION gbt_cash_consistent(internal, money, smallint, oid, internal) RETURNS boolean
403 LANGUAGE c IMMUTABLE STRICT
404 AS '$libdir/btree_gist', 'gbt_cash_consistent';
408 -- Name: gbt_cash_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
411 CREATE FUNCTION gbt_cash_penalty(internal, internal, internal) RETURNS internal
412 LANGUAGE c IMMUTABLE STRICT
413 AS '$libdir/btree_gist', 'gbt_cash_penalty';
417 -- Name: gbt_cash_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
420 CREATE FUNCTION gbt_cash_picksplit(internal, internal) RETURNS internal
421 LANGUAGE c IMMUTABLE STRICT
422 AS '$libdir/btree_gist', 'gbt_cash_picksplit';
426 -- Name: gbt_cash_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
429 CREATE FUNCTION gbt_cash_same(internal, internal, internal) RETURNS internal
430 LANGUAGE c IMMUTABLE STRICT
431 AS '$libdir/btree_gist', 'gbt_cash_same';
435 -- Name: gbt_cash_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
438 CREATE FUNCTION gbt_cash_union(bytea, internal) RETURNS gbtreekey8
439 LANGUAGE c IMMUTABLE STRICT
440 AS '$libdir/btree_gist', 'gbt_cash_union';
444 -- Name: gbt_date_compress(internal); Type: FUNCTION; Schema: public; Owner: -
447 CREATE FUNCTION gbt_date_compress(internal) RETURNS internal
448 LANGUAGE c IMMUTABLE STRICT
449 AS '$libdir/btree_gist', 'gbt_date_compress';
453 -- Name: gbt_date_consistent(internal, date, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
456 CREATE FUNCTION gbt_date_consistent(internal, date, smallint, oid, internal) RETURNS boolean
457 LANGUAGE c IMMUTABLE STRICT
458 AS '$libdir/btree_gist', 'gbt_date_consistent';
462 -- Name: gbt_date_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
465 CREATE FUNCTION gbt_date_penalty(internal, internal, internal) RETURNS internal
466 LANGUAGE c IMMUTABLE STRICT
467 AS '$libdir/btree_gist', 'gbt_date_penalty';
471 -- Name: gbt_date_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
474 CREATE FUNCTION gbt_date_picksplit(internal, internal) RETURNS internal
475 LANGUAGE c IMMUTABLE STRICT
476 AS '$libdir/btree_gist', 'gbt_date_picksplit';
480 -- Name: gbt_date_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
483 CREATE FUNCTION gbt_date_same(internal, internal, internal) RETURNS internal
484 LANGUAGE c IMMUTABLE STRICT
485 AS '$libdir/btree_gist', 'gbt_date_same';
489 -- Name: gbt_date_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
492 CREATE FUNCTION gbt_date_union(bytea, internal) RETURNS gbtreekey8
493 LANGUAGE c IMMUTABLE STRICT
494 AS '$libdir/btree_gist', 'gbt_date_union';
498 -- Name: gbt_decompress(internal); Type: FUNCTION; Schema: public; Owner: -
501 CREATE FUNCTION gbt_decompress(internal) RETURNS internal
502 LANGUAGE c IMMUTABLE STRICT
503 AS '$libdir/btree_gist', 'gbt_decompress';
507 -- Name: gbt_float4_compress(internal); Type: FUNCTION; Schema: public; Owner: -
510 CREATE FUNCTION gbt_float4_compress(internal) RETURNS internal
511 LANGUAGE c IMMUTABLE STRICT
512 AS '$libdir/btree_gist', 'gbt_float4_compress';
516 -- Name: gbt_float4_consistent(internal, real, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
519 CREATE FUNCTION gbt_float4_consistent(internal, real, smallint, oid, internal) RETURNS boolean
520 LANGUAGE c IMMUTABLE STRICT
521 AS '$libdir/btree_gist', 'gbt_float4_consistent';
525 -- Name: gbt_float4_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
528 CREATE FUNCTION gbt_float4_penalty(internal, internal, internal) RETURNS internal
529 LANGUAGE c IMMUTABLE STRICT
530 AS '$libdir/btree_gist', 'gbt_float4_penalty';
534 -- Name: gbt_float4_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
537 CREATE FUNCTION gbt_float4_picksplit(internal, internal) RETURNS internal
538 LANGUAGE c IMMUTABLE STRICT
539 AS '$libdir/btree_gist', 'gbt_float4_picksplit';
543 -- Name: gbt_float4_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
546 CREATE FUNCTION gbt_float4_same(internal, internal, internal) RETURNS internal
547 LANGUAGE c IMMUTABLE STRICT
548 AS '$libdir/btree_gist', 'gbt_float4_same';
552 -- Name: gbt_float4_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
555 CREATE FUNCTION gbt_float4_union(bytea, internal) RETURNS gbtreekey8
556 LANGUAGE c IMMUTABLE STRICT
557 AS '$libdir/btree_gist', 'gbt_float4_union';
561 -- Name: gbt_float8_compress(internal); Type: FUNCTION; Schema: public; Owner: -
564 CREATE FUNCTION gbt_float8_compress(internal) RETURNS internal
565 LANGUAGE c IMMUTABLE STRICT
566 AS '$libdir/btree_gist', 'gbt_float8_compress';
570 -- Name: gbt_float8_consistent(internal, double precision, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
573 CREATE FUNCTION gbt_float8_consistent(internal, double precision, smallint, oid, internal) RETURNS boolean
574 LANGUAGE c IMMUTABLE STRICT
575 AS '$libdir/btree_gist', 'gbt_float8_consistent';
579 -- Name: gbt_float8_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
582 CREATE FUNCTION gbt_float8_penalty(internal, internal, internal) RETURNS internal
583 LANGUAGE c IMMUTABLE STRICT
584 AS '$libdir/btree_gist', 'gbt_float8_penalty';
588 -- Name: gbt_float8_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
591 CREATE FUNCTION gbt_float8_picksplit(internal, internal) RETURNS internal
592 LANGUAGE c IMMUTABLE STRICT
593 AS '$libdir/btree_gist', 'gbt_float8_picksplit';
597 -- Name: gbt_float8_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
600 CREATE FUNCTION gbt_float8_same(internal, internal, internal) RETURNS internal
601 LANGUAGE c IMMUTABLE STRICT
602 AS '$libdir/btree_gist', 'gbt_float8_same';
606 -- Name: gbt_float8_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
609 CREATE FUNCTION gbt_float8_union(bytea, internal) RETURNS gbtreekey16
610 LANGUAGE c IMMUTABLE STRICT
611 AS '$libdir/btree_gist', 'gbt_float8_union';
615 -- Name: gbt_inet_compress(internal); Type: FUNCTION; Schema: public; Owner: -
618 CREATE FUNCTION gbt_inet_compress(internal) RETURNS internal
619 LANGUAGE c IMMUTABLE STRICT
620 AS '$libdir/btree_gist', 'gbt_inet_compress';
624 -- Name: gbt_inet_consistent(internal, inet, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
627 CREATE FUNCTION gbt_inet_consistent(internal, inet, smallint, oid, internal) RETURNS boolean
628 LANGUAGE c IMMUTABLE STRICT
629 AS '$libdir/btree_gist', 'gbt_inet_consistent';
633 -- Name: gbt_inet_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
636 CREATE FUNCTION gbt_inet_penalty(internal, internal, internal) RETURNS internal
637 LANGUAGE c IMMUTABLE STRICT
638 AS '$libdir/btree_gist', 'gbt_inet_penalty';
642 -- Name: gbt_inet_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
645 CREATE FUNCTION gbt_inet_picksplit(internal, internal) RETURNS internal
646 LANGUAGE c IMMUTABLE STRICT
647 AS '$libdir/btree_gist', 'gbt_inet_picksplit';
651 -- Name: gbt_inet_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
654 CREATE FUNCTION gbt_inet_same(internal, internal, internal) RETURNS internal
655 LANGUAGE c IMMUTABLE STRICT
656 AS '$libdir/btree_gist', 'gbt_inet_same';
660 -- Name: gbt_inet_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
663 CREATE FUNCTION gbt_inet_union(bytea, internal) RETURNS gbtreekey16
664 LANGUAGE c IMMUTABLE STRICT
665 AS '$libdir/btree_gist', 'gbt_inet_union';
669 -- Name: gbt_int2_compress(internal); Type: FUNCTION; Schema: public; Owner: -
672 CREATE FUNCTION gbt_int2_compress(internal) RETURNS internal
673 LANGUAGE c IMMUTABLE STRICT
674 AS '$libdir/btree_gist', 'gbt_int2_compress';
678 -- Name: gbt_int2_consistent(internal, smallint, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
681 CREATE FUNCTION gbt_int2_consistent(internal, smallint, smallint, oid, internal) RETURNS boolean
682 LANGUAGE c IMMUTABLE STRICT
683 AS '$libdir/btree_gist', 'gbt_int2_consistent';
687 -- Name: gbt_int2_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
690 CREATE FUNCTION gbt_int2_penalty(internal, internal, internal) RETURNS internal
691 LANGUAGE c IMMUTABLE STRICT
692 AS '$libdir/btree_gist', 'gbt_int2_penalty';
696 -- Name: gbt_int2_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
699 CREATE FUNCTION gbt_int2_picksplit(internal, internal) RETURNS internal
700 LANGUAGE c IMMUTABLE STRICT
701 AS '$libdir/btree_gist', 'gbt_int2_picksplit';
705 -- Name: gbt_int2_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
708 CREATE FUNCTION gbt_int2_same(internal, internal, internal) RETURNS internal
709 LANGUAGE c IMMUTABLE STRICT
710 AS '$libdir/btree_gist', 'gbt_int2_same';
714 -- Name: gbt_int2_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
717 CREATE FUNCTION gbt_int2_union(bytea, internal) RETURNS gbtreekey4
718 LANGUAGE c IMMUTABLE STRICT
719 AS '$libdir/btree_gist', 'gbt_int2_union';
723 -- Name: gbt_int4_compress(internal); Type: FUNCTION; Schema: public; Owner: -
726 CREATE FUNCTION gbt_int4_compress(internal) RETURNS internal
727 LANGUAGE c IMMUTABLE STRICT
728 AS '$libdir/btree_gist', 'gbt_int4_compress';
732 -- Name: gbt_int4_consistent(internal, integer, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
735 CREATE FUNCTION gbt_int4_consistent(internal, integer, smallint, oid, internal) RETURNS boolean
736 LANGUAGE c IMMUTABLE STRICT
737 AS '$libdir/btree_gist', 'gbt_int4_consistent';
741 -- Name: gbt_int4_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
744 CREATE FUNCTION gbt_int4_penalty(internal, internal, internal) RETURNS internal
745 LANGUAGE c IMMUTABLE STRICT
746 AS '$libdir/btree_gist', 'gbt_int4_penalty';
750 -- Name: gbt_int4_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
753 CREATE FUNCTION gbt_int4_picksplit(internal, internal) RETURNS internal
754 LANGUAGE c IMMUTABLE STRICT
755 AS '$libdir/btree_gist', 'gbt_int4_picksplit';
759 -- Name: gbt_int4_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
762 CREATE FUNCTION gbt_int4_same(internal, internal, internal) RETURNS internal
763 LANGUAGE c IMMUTABLE STRICT
764 AS '$libdir/btree_gist', 'gbt_int4_same';
768 -- Name: gbt_int4_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
771 CREATE FUNCTION gbt_int4_union(bytea, internal) RETURNS gbtreekey8
772 LANGUAGE c IMMUTABLE STRICT
773 AS '$libdir/btree_gist', 'gbt_int4_union';
777 -- Name: gbt_int8_compress(internal); Type: FUNCTION; Schema: public; Owner: -
780 CREATE FUNCTION gbt_int8_compress(internal) RETURNS internal
781 LANGUAGE c IMMUTABLE STRICT
782 AS '$libdir/btree_gist', 'gbt_int8_compress';
786 -- Name: gbt_int8_consistent(internal, bigint, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
789 CREATE FUNCTION gbt_int8_consistent(internal, bigint, smallint, oid, internal) RETURNS boolean
790 LANGUAGE c IMMUTABLE STRICT
791 AS '$libdir/btree_gist', 'gbt_int8_consistent';
795 -- Name: gbt_int8_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
798 CREATE FUNCTION gbt_int8_penalty(internal, internal, internal) RETURNS internal
799 LANGUAGE c IMMUTABLE STRICT
800 AS '$libdir/btree_gist', 'gbt_int8_penalty';
804 -- Name: gbt_int8_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
807 CREATE FUNCTION gbt_int8_picksplit(internal, internal) RETURNS internal
808 LANGUAGE c IMMUTABLE STRICT
809 AS '$libdir/btree_gist', 'gbt_int8_picksplit';
813 -- Name: gbt_int8_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
816 CREATE FUNCTION gbt_int8_same(internal, internal, internal) RETURNS internal
817 LANGUAGE c IMMUTABLE STRICT
818 AS '$libdir/btree_gist', 'gbt_int8_same';
822 -- Name: gbt_int8_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
825 CREATE FUNCTION gbt_int8_union(bytea, internal) RETURNS gbtreekey16
826 LANGUAGE c IMMUTABLE STRICT
827 AS '$libdir/btree_gist', 'gbt_int8_union';
831 -- Name: gbt_intv_compress(internal); Type: FUNCTION; Schema: public; Owner: -
834 CREATE FUNCTION gbt_intv_compress(internal) RETURNS internal
835 LANGUAGE c IMMUTABLE STRICT
836 AS '$libdir/btree_gist', 'gbt_intv_compress';
840 -- Name: gbt_intv_consistent(internal, interval, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
843 CREATE FUNCTION gbt_intv_consistent(internal, interval, smallint, oid, internal) RETURNS boolean
844 LANGUAGE c IMMUTABLE STRICT
845 AS '$libdir/btree_gist', 'gbt_intv_consistent';
849 -- Name: gbt_intv_decompress(internal); Type: FUNCTION; Schema: public; Owner: -
852 CREATE FUNCTION gbt_intv_decompress(internal) RETURNS internal
853 LANGUAGE c IMMUTABLE STRICT
854 AS '$libdir/btree_gist', 'gbt_intv_decompress';
858 -- Name: gbt_intv_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
861 CREATE FUNCTION gbt_intv_penalty(internal, internal, internal) RETURNS internal
862 LANGUAGE c IMMUTABLE STRICT
863 AS '$libdir/btree_gist', 'gbt_intv_penalty';
867 -- Name: gbt_intv_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
870 CREATE FUNCTION gbt_intv_picksplit(internal, internal) RETURNS internal
871 LANGUAGE c IMMUTABLE STRICT
872 AS '$libdir/btree_gist', 'gbt_intv_picksplit';
876 -- Name: gbt_intv_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
879 CREATE FUNCTION gbt_intv_same(internal, internal, internal) RETURNS internal
880 LANGUAGE c IMMUTABLE STRICT
881 AS '$libdir/btree_gist', 'gbt_intv_same';
885 -- Name: gbt_intv_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
888 CREATE FUNCTION gbt_intv_union(bytea, internal) RETURNS gbtreekey32
889 LANGUAGE c IMMUTABLE STRICT
890 AS '$libdir/btree_gist', 'gbt_intv_union';
894 -- Name: gbt_macad_compress(internal); Type: FUNCTION; Schema: public; Owner: -
897 CREATE FUNCTION gbt_macad_compress(internal) RETURNS internal
898 LANGUAGE c IMMUTABLE STRICT
899 AS '$libdir/btree_gist', 'gbt_macad_compress';
903 -- Name: gbt_macad_consistent(internal, macaddr, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
906 CREATE FUNCTION gbt_macad_consistent(internal, macaddr, smallint, oid, internal) RETURNS boolean
907 LANGUAGE c IMMUTABLE STRICT
908 AS '$libdir/btree_gist', 'gbt_macad_consistent';
912 -- Name: gbt_macad_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
915 CREATE FUNCTION gbt_macad_penalty(internal, internal, internal) RETURNS internal
916 LANGUAGE c IMMUTABLE STRICT
917 AS '$libdir/btree_gist', 'gbt_macad_penalty';
921 -- Name: gbt_macad_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
924 CREATE FUNCTION gbt_macad_picksplit(internal, internal) RETURNS internal
925 LANGUAGE c IMMUTABLE STRICT
926 AS '$libdir/btree_gist', 'gbt_macad_picksplit';
930 -- Name: gbt_macad_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
933 CREATE FUNCTION gbt_macad_same(internal, internal, internal) RETURNS internal
934 LANGUAGE c IMMUTABLE STRICT
935 AS '$libdir/btree_gist', 'gbt_macad_same';
939 -- Name: gbt_macad_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
942 CREATE FUNCTION gbt_macad_union(bytea, internal) RETURNS gbtreekey16
943 LANGUAGE c IMMUTABLE STRICT
944 AS '$libdir/btree_gist', 'gbt_macad_union';
948 -- Name: gbt_numeric_compress(internal); Type: FUNCTION; Schema: public; Owner: -
951 CREATE FUNCTION gbt_numeric_compress(internal) RETURNS internal
952 LANGUAGE c IMMUTABLE STRICT
953 AS '$libdir/btree_gist', 'gbt_numeric_compress';
957 -- Name: gbt_numeric_consistent(internal, numeric, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
960 CREATE FUNCTION gbt_numeric_consistent(internal, numeric, smallint, oid, internal) RETURNS boolean
961 LANGUAGE c IMMUTABLE STRICT
962 AS '$libdir/btree_gist', 'gbt_numeric_consistent';
966 -- Name: gbt_numeric_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
969 CREATE FUNCTION gbt_numeric_penalty(internal, internal, internal) RETURNS internal
970 LANGUAGE c IMMUTABLE STRICT
971 AS '$libdir/btree_gist', 'gbt_numeric_penalty';
975 -- Name: gbt_numeric_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
978 CREATE FUNCTION gbt_numeric_picksplit(internal, internal) RETURNS internal
979 LANGUAGE c IMMUTABLE STRICT
980 AS '$libdir/btree_gist', 'gbt_numeric_picksplit';
984 -- Name: gbt_numeric_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
987 CREATE FUNCTION gbt_numeric_same(internal, internal, internal) RETURNS internal
988 LANGUAGE c IMMUTABLE STRICT
989 AS '$libdir/btree_gist', 'gbt_numeric_same';
993 -- Name: gbt_numeric_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
996 CREATE FUNCTION gbt_numeric_union(bytea, internal) RETURNS gbtreekey_var
997 LANGUAGE c IMMUTABLE STRICT
998 AS '$libdir/btree_gist', 'gbt_numeric_union';
1002 -- Name: gbt_oid_compress(internal); Type: FUNCTION; Schema: public; Owner: -
1005 CREATE FUNCTION gbt_oid_compress(internal) RETURNS internal
1006 LANGUAGE c IMMUTABLE STRICT
1007 AS '$libdir/btree_gist', 'gbt_oid_compress';
1011 -- Name: gbt_oid_consistent(internal, oid, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
1014 CREATE FUNCTION gbt_oid_consistent(internal, oid, smallint, oid, internal) RETURNS boolean
1015 LANGUAGE c IMMUTABLE STRICT
1016 AS '$libdir/btree_gist', 'gbt_oid_consistent';
1020 -- Name: gbt_oid_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
1023 CREATE FUNCTION gbt_oid_penalty(internal, internal, internal) RETURNS internal
1024 LANGUAGE c IMMUTABLE STRICT
1025 AS '$libdir/btree_gist', 'gbt_oid_penalty';
1029 -- Name: gbt_oid_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
1032 CREATE FUNCTION gbt_oid_picksplit(internal, internal) RETURNS internal
1033 LANGUAGE c IMMUTABLE STRICT
1034 AS '$libdir/btree_gist', 'gbt_oid_picksplit';
1038 -- Name: gbt_oid_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
1041 CREATE FUNCTION gbt_oid_same(internal, internal, internal) RETURNS internal
1042 LANGUAGE c IMMUTABLE STRICT
1043 AS '$libdir/btree_gist', 'gbt_oid_same';
1047 -- Name: gbt_oid_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
1050 CREATE FUNCTION gbt_oid_union(bytea, internal) RETURNS gbtreekey8
1051 LANGUAGE c IMMUTABLE STRICT
1052 AS '$libdir/btree_gist', 'gbt_oid_union';
1056 -- Name: gbt_text_compress(internal); Type: FUNCTION; Schema: public; Owner: -
1059 CREATE FUNCTION gbt_text_compress(internal) RETURNS internal
1060 LANGUAGE c IMMUTABLE STRICT
1061 AS '$libdir/btree_gist', 'gbt_text_compress';
1065 -- Name: gbt_text_consistent(internal, text, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
1068 CREATE FUNCTION gbt_text_consistent(internal, text, smallint, oid, internal) RETURNS boolean
1069 LANGUAGE c IMMUTABLE STRICT
1070 AS '$libdir/btree_gist', 'gbt_text_consistent';
1074 -- Name: gbt_text_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
1077 CREATE FUNCTION gbt_text_penalty(internal, internal, internal) RETURNS internal
1078 LANGUAGE c IMMUTABLE STRICT
1079 AS '$libdir/btree_gist', 'gbt_text_penalty';
1083 -- Name: gbt_text_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
1086 CREATE FUNCTION gbt_text_picksplit(internal, internal) RETURNS internal
1087 LANGUAGE c IMMUTABLE STRICT
1088 AS '$libdir/btree_gist', 'gbt_text_picksplit';
1092 -- Name: gbt_text_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
1095 CREATE FUNCTION gbt_text_same(internal, internal, internal) RETURNS internal
1096 LANGUAGE c IMMUTABLE STRICT
1097 AS '$libdir/btree_gist', 'gbt_text_same';
1101 -- Name: gbt_text_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
1104 CREATE FUNCTION gbt_text_union(bytea, internal) RETURNS gbtreekey_var
1105 LANGUAGE c IMMUTABLE STRICT
1106 AS '$libdir/btree_gist', 'gbt_text_union';
1110 -- Name: gbt_time_compress(internal); Type: FUNCTION; Schema: public; Owner: -
1113 CREATE FUNCTION gbt_time_compress(internal) RETURNS internal
1114 LANGUAGE c IMMUTABLE STRICT
1115 AS '$libdir/btree_gist', 'gbt_time_compress';
1119 -- Name: gbt_time_consistent(internal, time without time zone, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
1122 CREATE FUNCTION gbt_time_consistent(internal, time without time zone, smallint, oid, internal) RETURNS boolean
1123 LANGUAGE c IMMUTABLE STRICT
1124 AS '$libdir/btree_gist', 'gbt_time_consistent';
1128 -- Name: gbt_time_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
1131 CREATE FUNCTION gbt_time_penalty(internal, internal, internal) RETURNS internal
1132 LANGUAGE c IMMUTABLE STRICT
1133 AS '$libdir/btree_gist', 'gbt_time_penalty';
1137 -- Name: gbt_time_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
1140 CREATE FUNCTION gbt_time_picksplit(internal, internal) RETURNS internal
1141 LANGUAGE c IMMUTABLE STRICT
1142 AS '$libdir/btree_gist', 'gbt_time_picksplit';
1146 -- Name: gbt_time_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
1149 CREATE FUNCTION gbt_time_same(internal, internal, internal) RETURNS internal
1150 LANGUAGE c IMMUTABLE STRICT
1151 AS '$libdir/btree_gist', 'gbt_time_same';
1155 -- Name: gbt_time_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
1158 CREATE FUNCTION gbt_time_union(bytea, internal) RETURNS gbtreekey16
1159 LANGUAGE c IMMUTABLE STRICT
1160 AS '$libdir/btree_gist', 'gbt_time_union';
1164 -- Name: gbt_timetz_compress(internal); Type: FUNCTION; Schema: public; Owner: -
1167 CREATE FUNCTION gbt_timetz_compress(internal) RETURNS internal
1168 LANGUAGE c IMMUTABLE STRICT
1169 AS '$libdir/btree_gist', 'gbt_timetz_compress';
1173 -- Name: gbt_timetz_consistent(internal, time with time zone, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
1176 CREATE FUNCTION gbt_timetz_consistent(internal, time with time zone, smallint, oid, internal) RETURNS boolean
1177 LANGUAGE c IMMUTABLE STRICT
1178 AS '$libdir/btree_gist', 'gbt_timetz_consistent';
1182 -- Name: gbt_ts_compress(internal); Type: FUNCTION; Schema: public; Owner: -
1185 CREATE FUNCTION gbt_ts_compress(internal) RETURNS internal
1186 LANGUAGE c IMMUTABLE STRICT
1187 AS '$libdir/btree_gist', 'gbt_ts_compress';
1191 -- Name: gbt_ts_consistent(internal, timestamp without time zone, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
1194 CREATE FUNCTION gbt_ts_consistent(internal, timestamp without time zone, smallint, oid, internal) RETURNS boolean
1195 LANGUAGE c IMMUTABLE STRICT
1196 AS '$libdir/btree_gist', 'gbt_ts_consistent';
1200 -- Name: gbt_ts_penalty(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
1203 CREATE FUNCTION gbt_ts_penalty(internal, internal, internal) RETURNS internal
1204 LANGUAGE c IMMUTABLE STRICT
1205 AS '$libdir/btree_gist', 'gbt_ts_penalty';
1209 -- Name: gbt_ts_picksplit(internal, internal); Type: FUNCTION; Schema: public; Owner: -
1212 CREATE FUNCTION gbt_ts_picksplit(internal, internal) RETURNS internal
1213 LANGUAGE c IMMUTABLE STRICT
1214 AS '$libdir/btree_gist', 'gbt_ts_picksplit';
1218 -- Name: gbt_ts_same(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: -
1221 CREATE FUNCTION gbt_ts_same(internal, internal, internal) RETURNS internal
1222 LANGUAGE c IMMUTABLE STRICT
1223 AS '$libdir/btree_gist', 'gbt_ts_same';
1227 -- Name: gbt_ts_union(bytea, internal); Type: FUNCTION; Schema: public; Owner: -
1230 CREATE FUNCTION gbt_ts_union(bytea, internal) RETURNS gbtreekey16
1231 LANGUAGE c IMMUTABLE STRICT
1232 AS '$libdir/btree_gist', 'gbt_ts_union';
1236 -- Name: gbt_tstz_compress(internal); Type: FUNCTION; Schema: public; Owner: -
1239 CREATE FUNCTION gbt_tstz_compress(internal) RETURNS internal
1240 LANGUAGE c IMMUTABLE STRICT
1241 AS '$libdir/btree_gist', 'gbt_tstz_compress';
1245 -- Name: gbt_tstz_consistent(internal, timestamp with time zone, smallint, oid, internal); Type: FUNCTION; Schema: public; Owner: -
1248 CREATE FUNCTION gbt_tstz_consistent(internal, timestamp with time zone, smallint, oid, internal) RETURNS boolean
1249 LANGUAGE c IMMUTABLE STRICT
1250 AS '$libdir/btree_gist', 'gbt_tstz_consistent';
1254 -- Name: gbt_var_decompress(internal); Type: FUNCTION; Schema: public; Owner: -
1257 CREATE FUNCTION gbt_var_decompress(internal) RETURNS internal
1258 LANGUAGE c IMMUTABLE STRICT
1259 AS '$libdir/btree_gist', 'gbt_var_decompress';
1263 -- Name: maptile_for_point(bigint, bigint, integer); Type: FUNCTION; Schema: public; Owner: -
1266 CREATE FUNCTION maptile_for_point(bigint, bigint, integer) RETURNS integer
1268 AS '/srv/www/master.osm.compton.nu/db/functions/libpgosm.so', 'maptile_for_point';
1272 -- Name: tile_for_point(integer, integer); Type: FUNCTION; Schema: public; Owner: -
1275 CREATE FUNCTION tile_for_point(integer, integer) RETURNS bigint
1277 AS '/srv/www/master.osm.compton.nu/db/functions/libpgosm.so', 'tile_for_point';
1281 -- Name: xid_to_int4(xid); Type: FUNCTION; Schema: public; Owner: -
1284 CREATE FUNCTION xid_to_int4(xid) RETURNS integer
1285 LANGUAGE c IMMUTABLE STRICT
1286 AS '/srv/www/master.osm.compton.nu/db/functions/libpgosm.so', 'xid_to_int4';
1290 -- Name: gist_bit_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1293 CREATE OPERATOR FAMILY gist_bit_ops USING gist;
1297 -- Name: gist_bit_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1300 CREATE OPERATOR CLASS gist_bit_ops
1301 DEFAULT FOR TYPE bit USING gist AS
1302 STORAGE gbtreekey_var ,
1303 OPERATOR 1 <(bit,bit) ,
1304 OPERATOR 2 <=(bit,bit) ,
1305 OPERATOR 3 =(bit,bit) ,
1306 OPERATOR 4 >=(bit,bit) ,
1307 OPERATOR 5 >(bit,bit) ,
1308 FUNCTION 1 gbt_bit_consistent(internal,bit,smallint,oid,internal) ,
1309 FUNCTION 2 gbt_bit_union(bytea,internal) ,
1310 FUNCTION 3 gbt_bit_compress(internal) ,
1311 FUNCTION 4 gbt_var_decompress(internal) ,
1312 FUNCTION 5 gbt_bit_penalty(internal,internal,internal) ,
1313 FUNCTION 6 gbt_bit_picksplit(internal,internal) ,
1314 FUNCTION 7 gbt_bit_same(internal,internal,internal);
1318 -- Name: gist_bpchar_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1321 CREATE OPERATOR FAMILY gist_bpchar_ops USING gist;
1325 -- Name: gist_bpchar_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1328 CREATE OPERATOR CLASS gist_bpchar_ops
1329 DEFAULT FOR TYPE character USING gist AS
1330 STORAGE gbtreekey_var ,
1331 OPERATOR 1 <(character,character) ,
1332 OPERATOR 2 <=(character,character) ,
1333 OPERATOR 3 =(character,character) ,
1334 OPERATOR 4 >=(character,character) ,
1335 OPERATOR 5 >(character,character) ,
1336 FUNCTION 1 gbt_bpchar_consistent(internal,character,smallint,oid,internal) ,
1337 FUNCTION 2 gbt_text_union(bytea,internal) ,
1338 FUNCTION 3 gbt_bpchar_compress(internal) ,
1339 FUNCTION 4 gbt_var_decompress(internal) ,
1340 FUNCTION 5 gbt_text_penalty(internal,internal,internal) ,
1341 FUNCTION 6 gbt_text_picksplit(internal,internal) ,
1342 FUNCTION 7 gbt_text_same(internal,internal,internal);
1346 -- Name: gist_bytea_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1349 CREATE OPERATOR FAMILY gist_bytea_ops USING gist;
1353 -- Name: gist_bytea_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1356 CREATE OPERATOR CLASS gist_bytea_ops
1357 DEFAULT FOR TYPE bytea USING gist AS
1358 STORAGE gbtreekey_var ,
1359 OPERATOR 1 <(bytea,bytea) ,
1360 OPERATOR 2 <=(bytea,bytea) ,
1361 OPERATOR 3 =(bytea,bytea) ,
1362 OPERATOR 4 >=(bytea,bytea) ,
1363 OPERATOR 5 >(bytea,bytea) ,
1364 FUNCTION 1 gbt_bytea_consistent(internal,bytea,smallint,oid,internal) ,
1365 FUNCTION 2 gbt_bytea_union(bytea,internal) ,
1366 FUNCTION 3 gbt_bytea_compress(internal) ,
1367 FUNCTION 4 gbt_var_decompress(internal) ,
1368 FUNCTION 5 gbt_bytea_penalty(internal,internal,internal) ,
1369 FUNCTION 6 gbt_bytea_picksplit(internal,internal) ,
1370 FUNCTION 7 gbt_bytea_same(internal,internal,internal);
1374 -- Name: gist_cash_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1377 CREATE OPERATOR FAMILY gist_cash_ops USING gist;
1381 -- Name: gist_cash_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1384 CREATE OPERATOR CLASS gist_cash_ops
1385 DEFAULT FOR TYPE money USING gist AS
1386 STORAGE gbtreekey16 ,
1387 OPERATOR 1 <(money,money) ,
1388 OPERATOR 2 <=(money,money) ,
1389 OPERATOR 3 =(money,money) ,
1390 OPERATOR 4 >=(money,money) ,
1391 OPERATOR 5 >(money,money) ,
1392 FUNCTION 1 gbt_cash_consistent(internal,money,smallint,oid,internal) ,
1393 FUNCTION 2 gbt_cash_union(bytea,internal) ,
1394 FUNCTION 3 gbt_cash_compress(internal) ,
1395 FUNCTION 4 gbt_decompress(internal) ,
1396 FUNCTION 5 gbt_cash_penalty(internal,internal,internal) ,
1397 FUNCTION 6 gbt_cash_picksplit(internal,internal) ,
1398 FUNCTION 7 gbt_cash_same(internal,internal,internal);
1402 -- Name: gist_cidr_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1405 CREATE OPERATOR FAMILY gist_cidr_ops USING gist;
1409 -- Name: gist_cidr_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1412 CREATE OPERATOR CLASS gist_cidr_ops
1413 DEFAULT FOR TYPE cidr USING gist AS
1414 STORAGE gbtreekey16 ,
1415 OPERATOR 1 <(inet,inet) ,
1416 OPERATOR 2 <=(inet,inet) ,
1417 OPERATOR 3 =(inet,inet) ,
1418 OPERATOR 4 >=(inet,inet) ,
1419 OPERATOR 5 >(inet,inet) ,
1420 FUNCTION 1 gbt_inet_consistent(internal,inet,smallint,oid,internal) ,
1421 FUNCTION 2 gbt_inet_union(bytea,internal) ,
1422 FUNCTION 3 gbt_inet_compress(internal) ,
1423 FUNCTION 4 gbt_decompress(internal) ,
1424 FUNCTION 5 gbt_inet_penalty(internal,internal,internal) ,
1425 FUNCTION 6 gbt_inet_picksplit(internal,internal) ,
1426 FUNCTION 7 gbt_inet_same(internal,internal,internal);
1430 -- Name: gist_date_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1433 CREATE OPERATOR FAMILY gist_date_ops USING gist;
1437 -- Name: gist_date_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1440 CREATE OPERATOR CLASS gist_date_ops
1441 DEFAULT FOR TYPE date USING gist AS
1442 STORAGE gbtreekey8 ,
1443 OPERATOR 1 <(date,date) ,
1444 OPERATOR 2 <=(date,date) ,
1445 OPERATOR 3 =(date,date) ,
1446 OPERATOR 4 >=(date,date) ,
1447 OPERATOR 5 >(date,date) ,
1448 FUNCTION 1 gbt_date_consistent(internal,date,smallint,oid,internal) ,
1449 FUNCTION 2 gbt_date_union(bytea,internal) ,
1450 FUNCTION 3 gbt_date_compress(internal) ,
1451 FUNCTION 4 gbt_decompress(internal) ,
1452 FUNCTION 5 gbt_date_penalty(internal,internal,internal) ,
1453 FUNCTION 6 gbt_date_picksplit(internal,internal) ,
1454 FUNCTION 7 gbt_date_same(internal,internal,internal);
1458 -- Name: gist_float4_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1461 CREATE OPERATOR FAMILY gist_float4_ops USING gist;
1465 -- Name: gist_float4_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1468 CREATE OPERATOR CLASS gist_float4_ops
1469 DEFAULT FOR TYPE real USING gist AS
1470 STORAGE gbtreekey8 ,
1471 OPERATOR 1 <(real,real) ,
1472 OPERATOR 2 <=(real,real) ,
1473 OPERATOR 3 =(real,real) ,
1474 OPERATOR 4 >=(real,real) ,
1475 OPERATOR 5 >(real,real) ,
1476 FUNCTION 1 gbt_float4_consistent(internal,real,smallint,oid,internal) ,
1477 FUNCTION 2 gbt_float4_union(bytea,internal) ,
1478 FUNCTION 3 gbt_float4_compress(internal) ,
1479 FUNCTION 4 gbt_decompress(internal) ,
1480 FUNCTION 5 gbt_float4_penalty(internal,internal,internal) ,
1481 FUNCTION 6 gbt_float4_picksplit(internal,internal) ,
1482 FUNCTION 7 gbt_float4_same(internal,internal,internal);
1486 -- Name: gist_float8_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1489 CREATE OPERATOR FAMILY gist_float8_ops USING gist;
1493 -- Name: gist_float8_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1496 CREATE OPERATOR CLASS gist_float8_ops
1497 DEFAULT FOR TYPE double precision USING gist AS
1498 STORAGE gbtreekey16 ,
1499 OPERATOR 1 <(double precision,double precision) ,
1500 OPERATOR 2 <=(double precision,double precision) ,
1501 OPERATOR 3 =(double precision,double precision) ,
1502 OPERATOR 4 >=(double precision,double precision) ,
1503 OPERATOR 5 >(double precision,double precision) ,
1504 FUNCTION 1 gbt_float8_consistent(internal,double precision,smallint,oid,internal) ,
1505 FUNCTION 2 gbt_float8_union(bytea,internal) ,
1506 FUNCTION 3 gbt_float8_compress(internal) ,
1507 FUNCTION 4 gbt_decompress(internal) ,
1508 FUNCTION 5 gbt_float8_penalty(internal,internal,internal) ,
1509 FUNCTION 6 gbt_float8_picksplit(internal,internal) ,
1510 FUNCTION 7 gbt_float8_same(internal,internal,internal);
1514 -- Name: gist_inet_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1517 CREATE OPERATOR FAMILY gist_inet_ops USING gist;
1521 -- Name: gist_inet_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1524 CREATE OPERATOR CLASS gist_inet_ops
1525 DEFAULT FOR TYPE inet USING gist AS
1526 STORAGE gbtreekey16 ,
1527 OPERATOR 1 <(inet,inet) ,
1528 OPERATOR 2 <=(inet,inet) ,
1529 OPERATOR 3 =(inet,inet) ,
1530 OPERATOR 4 >=(inet,inet) ,
1531 OPERATOR 5 >(inet,inet) ,
1532 FUNCTION 1 gbt_inet_consistent(internal,inet,smallint,oid,internal) ,
1533 FUNCTION 2 gbt_inet_union(bytea,internal) ,
1534 FUNCTION 3 gbt_inet_compress(internal) ,
1535 FUNCTION 4 gbt_decompress(internal) ,
1536 FUNCTION 5 gbt_inet_penalty(internal,internal,internal) ,
1537 FUNCTION 6 gbt_inet_picksplit(internal,internal) ,
1538 FUNCTION 7 gbt_inet_same(internal,internal,internal);
1542 -- Name: gist_int2_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1545 CREATE OPERATOR FAMILY gist_int2_ops USING gist;
1549 -- Name: gist_int2_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1552 CREATE OPERATOR CLASS gist_int2_ops
1553 DEFAULT FOR TYPE smallint USING gist AS
1554 STORAGE gbtreekey4 ,
1555 OPERATOR 1 <(smallint,smallint) ,
1556 OPERATOR 2 <=(smallint,smallint) ,
1557 OPERATOR 3 =(smallint,smallint) ,
1558 OPERATOR 4 >=(smallint,smallint) ,
1559 OPERATOR 5 >(smallint,smallint) ,
1560 FUNCTION 1 gbt_int2_consistent(internal,smallint,smallint,oid,internal) ,
1561 FUNCTION 2 gbt_int2_union(bytea,internal) ,
1562 FUNCTION 3 gbt_int2_compress(internal) ,
1563 FUNCTION 4 gbt_decompress(internal) ,
1564 FUNCTION 5 gbt_int2_penalty(internal,internal,internal) ,
1565 FUNCTION 6 gbt_int2_picksplit(internal,internal) ,
1566 FUNCTION 7 gbt_int2_same(internal,internal,internal);
1570 -- Name: gist_int4_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1573 CREATE OPERATOR FAMILY gist_int4_ops USING gist;
1577 -- Name: gist_int4_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1580 CREATE OPERATOR CLASS gist_int4_ops
1581 DEFAULT FOR TYPE integer USING gist AS
1582 STORAGE gbtreekey8 ,
1583 OPERATOR 1 <(integer,integer) ,
1584 OPERATOR 2 <=(integer,integer) ,
1585 OPERATOR 3 =(integer,integer) ,
1586 OPERATOR 4 >=(integer,integer) ,
1587 OPERATOR 5 >(integer,integer) ,
1588 FUNCTION 1 gbt_int4_consistent(internal,integer,smallint,oid,internal) ,
1589 FUNCTION 2 gbt_int4_union(bytea,internal) ,
1590 FUNCTION 3 gbt_int4_compress(internal) ,
1591 FUNCTION 4 gbt_decompress(internal) ,
1592 FUNCTION 5 gbt_int4_penalty(internal,internal,internal) ,
1593 FUNCTION 6 gbt_int4_picksplit(internal,internal) ,
1594 FUNCTION 7 gbt_int4_same(internal,internal,internal);
1598 -- Name: gist_int8_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1601 CREATE OPERATOR FAMILY gist_int8_ops USING gist;
1605 -- Name: gist_int8_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1608 CREATE OPERATOR CLASS gist_int8_ops
1609 DEFAULT FOR TYPE bigint USING gist AS
1610 STORAGE gbtreekey16 ,
1611 OPERATOR 1 <(bigint,bigint) ,
1612 OPERATOR 2 <=(bigint,bigint) ,
1613 OPERATOR 3 =(bigint,bigint) ,
1614 OPERATOR 4 >=(bigint,bigint) ,
1615 OPERATOR 5 >(bigint,bigint) ,
1616 FUNCTION 1 gbt_int8_consistent(internal,bigint,smallint,oid,internal) ,
1617 FUNCTION 2 gbt_int8_union(bytea,internal) ,
1618 FUNCTION 3 gbt_int8_compress(internal) ,
1619 FUNCTION 4 gbt_decompress(internal) ,
1620 FUNCTION 5 gbt_int8_penalty(internal,internal,internal) ,
1621 FUNCTION 6 gbt_int8_picksplit(internal,internal) ,
1622 FUNCTION 7 gbt_int8_same(internal,internal,internal);
1626 -- Name: gist_interval_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1629 CREATE OPERATOR FAMILY gist_interval_ops USING gist;
1633 -- Name: gist_interval_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1636 CREATE OPERATOR CLASS gist_interval_ops
1637 DEFAULT FOR TYPE interval USING gist AS
1638 STORAGE gbtreekey32 ,
1639 OPERATOR 1 <(interval,interval) ,
1640 OPERATOR 2 <=(interval,interval) ,
1641 OPERATOR 3 =(interval,interval) ,
1642 OPERATOR 4 >=(interval,interval) ,
1643 OPERATOR 5 >(interval,interval) ,
1644 FUNCTION 1 gbt_intv_consistent(internal,interval,smallint,oid,internal) ,
1645 FUNCTION 2 gbt_intv_union(bytea,internal) ,
1646 FUNCTION 3 gbt_intv_compress(internal) ,
1647 FUNCTION 4 gbt_intv_decompress(internal) ,
1648 FUNCTION 5 gbt_intv_penalty(internal,internal,internal) ,
1649 FUNCTION 6 gbt_intv_picksplit(internal,internal) ,
1650 FUNCTION 7 gbt_intv_same(internal,internal,internal);
1654 -- Name: gist_macaddr_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1657 CREATE OPERATOR FAMILY gist_macaddr_ops USING gist;
1661 -- Name: gist_macaddr_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1664 CREATE OPERATOR CLASS gist_macaddr_ops
1665 DEFAULT FOR TYPE macaddr USING gist AS
1666 STORAGE gbtreekey16 ,
1667 OPERATOR 1 <(macaddr,macaddr) ,
1668 OPERATOR 2 <=(macaddr,macaddr) ,
1669 OPERATOR 3 =(macaddr,macaddr) ,
1670 OPERATOR 4 >=(macaddr,macaddr) ,
1671 OPERATOR 5 >(macaddr,macaddr) ,
1672 FUNCTION 1 gbt_macad_consistent(internal,macaddr,smallint,oid,internal) ,
1673 FUNCTION 2 gbt_macad_union(bytea,internal) ,
1674 FUNCTION 3 gbt_macad_compress(internal) ,
1675 FUNCTION 4 gbt_decompress(internal) ,
1676 FUNCTION 5 gbt_macad_penalty(internal,internal,internal) ,
1677 FUNCTION 6 gbt_macad_picksplit(internal,internal) ,
1678 FUNCTION 7 gbt_macad_same(internal,internal,internal);
1682 -- Name: gist_numeric_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1685 CREATE OPERATOR FAMILY gist_numeric_ops USING gist;
1689 -- Name: gist_numeric_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1692 CREATE OPERATOR CLASS gist_numeric_ops
1693 DEFAULT FOR TYPE numeric USING gist AS
1694 STORAGE gbtreekey_var ,
1695 OPERATOR 1 <(numeric,numeric) ,
1696 OPERATOR 2 <=(numeric,numeric) ,
1697 OPERATOR 3 =(numeric,numeric) ,
1698 OPERATOR 4 >=(numeric,numeric) ,
1699 OPERATOR 5 >(numeric,numeric) ,
1700 FUNCTION 1 gbt_numeric_consistent(internal,numeric,smallint,oid,internal) ,
1701 FUNCTION 2 gbt_numeric_union(bytea,internal) ,
1702 FUNCTION 3 gbt_numeric_compress(internal) ,
1703 FUNCTION 4 gbt_var_decompress(internal) ,
1704 FUNCTION 5 gbt_numeric_penalty(internal,internal,internal) ,
1705 FUNCTION 6 gbt_numeric_picksplit(internal,internal) ,
1706 FUNCTION 7 gbt_numeric_same(internal,internal,internal);
1710 -- Name: gist_oid_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1713 CREATE OPERATOR FAMILY gist_oid_ops USING gist;
1717 -- Name: gist_oid_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1720 CREATE OPERATOR CLASS gist_oid_ops
1721 DEFAULT FOR TYPE oid USING gist AS
1722 STORAGE gbtreekey8 ,
1723 OPERATOR 1 <(oid,oid) ,
1724 OPERATOR 2 <=(oid,oid) ,
1725 OPERATOR 3 =(oid,oid) ,
1726 OPERATOR 4 >=(oid,oid) ,
1727 OPERATOR 5 >(oid,oid) ,
1728 FUNCTION 1 gbt_oid_consistent(internal,oid,smallint,oid,internal) ,
1729 FUNCTION 2 gbt_oid_union(bytea,internal) ,
1730 FUNCTION 3 gbt_oid_compress(internal) ,
1731 FUNCTION 4 gbt_decompress(internal) ,
1732 FUNCTION 5 gbt_oid_penalty(internal,internal,internal) ,
1733 FUNCTION 6 gbt_oid_picksplit(internal,internal) ,
1734 FUNCTION 7 gbt_oid_same(internal,internal,internal);
1738 -- Name: gist_text_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1741 CREATE OPERATOR FAMILY gist_text_ops USING gist;
1745 -- Name: gist_text_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1748 CREATE OPERATOR CLASS gist_text_ops
1749 DEFAULT FOR TYPE text USING gist AS
1750 STORAGE gbtreekey_var ,
1751 OPERATOR 1 <(text,text) ,
1752 OPERATOR 2 <=(text,text) ,
1753 OPERATOR 3 =(text,text) ,
1754 OPERATOR 4 >=(text,text) ,
1755 OPERATOR 5 >(text,text) ,
1756 FUNCTION 1 gbt_text_consistent(internal,text,smallint,oid,internal) ,
1757 FUNCTION 2 gbt_text_union(bytea,internal) ,
1758 FUNCTION 3 gbt_text_compress(internal) ,
1759 FUNCTION 4 gbt_var_decompress(internal) ,
1760 FUNCTION 5 gbt_text_penalty(internal,internal,internal) ,
1761 FUNCTION 6 gbt_text_picksplit(internal,internal) ,
1762 FUNCTION 7 gbt_text_same(internal,internal,internal);
1766 -- Name: gist_time_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1769 CREATE OPERATOR FAMILY gist_time_ops USING gist;
1773 -- Name: gist_time_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1776 CREATE OPERATOR CLASS gist_time_ops
1777 DEFAULT FOR TYPE time without time zone USING gist AS
1778 STORAGE gbtreekey16 ,
1779 OPERATOR 1 <(time without time zone,time without time zone) ,
1780 OPERATOR 2 <=(time without time zone,time without time zone) ,
1781 OPERATOR 3 =(time without time zone,time without time zone) ,
1782 OPERATOR 4 >=(time without time zone,time without time zone) ,
1783 OPERATOR 5 >(time without time zone,time without time zone) ,
1784 FUNCTION 1 gbt_time_consistent(internal,time without time zone,smallint,oid,internal) ,
1785 FUNCTION 2 gbt_time_union(bytea,internal) ,
1786 FUNCTION 3 gbt_time_compress(internal) ,
1787 FUNCTION 4 gbt_decompress(internal) ,
1788 FUNCTION 5 gbt_time_penalty(internal,internal,internal) ,
1789 FUNCTION 6 gbt_time_picksplit(internal,internal) ,
1790 FUNCTION 7 gbt_time_same(internal,internal,internal);
1794 -- Name: gist_timestamp_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1797 CREATE OPERATOR FAMILY gist_timestamp_ops USING gist;
1801 -- Name: gist_timestamp_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1804 CREATE OPERATOR CLASS gist_timestamp_ops
1805 DEFAULT FOR TYPE timestamp without time zone USING gist AS
1806 STORAGE gbtreekey16 ,
1807 OPERATOR 1 <(timestamp without time zone,timestamp without time zone) ,
1808 OPERATOR 2 <=(timestamp without time zone,timestamp without time zone) ,
1809 OPERATOR 3 =(timestamp without time zone,timestamp without time zone) ,
1810 OPERATOR 4 >=(timestamp without time zone,timestamp without time zone) ,
1811 OPERATOR 5 >(timestamp without time zone,timestamp without time zone) ,
1812 FUNCTION 1 gbt_ts_consistent(internal,timestamp without time zone,smallint,oid,internal) ,
1813 FUNCTION 2 gbt_ts_union(bytea,internal) ,
1814 FUNCTION 3 gbt_ts_compress(internal) ,
1815 FUNCTION 4 gbt_decompress(internal) ,
1816 FUNCTION 5 gbt_ts_penalty(internal,internal,internal) ,
1817 FUNCTION 6 gbt_ts_picksplit(internal,internal) ,
1818 FUNCTION 7 gbt_ts_same(internal,internal,internal);
1822 -- Name: gist_timestamptz_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1825 CREATE OPERATOR FAMILY gist_timestamptz_ops USING gist;
1829 -- Name: gist_timestamptz_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1832 CREATE OPERATOR CLASS gist_timestamptz_ops
1833 DEFAULT FOR TYPE timestamp with time zone USING gist AS
1834 STORAGE gbtreekey16 ,
1835 OPERATOR 1 <(timestamp with time zone,timestamp with time zone) ,
1836 OPERATOR 2 <=(timestamp with time zone,timestamp with time zone) ,
1837 OPERATOR 3 =(timestamp with time zone,timestamp with time zone) ,
1838 OPERATOR 4 >=(timestamp with time zone,timestamp with time zone) ,
1839 OPERATOR 5 >(timestamp with time zone,timestamp with time zone) ,
1840 FUNCTION 1 gbt_tstz_consistent(internal,timestamp with time zone,smallint,oid,internal) ,
1841 FUNCTION 2 gbt_ts_union(bytea,internal) ,
1842 FUNCTION 3 gbt_tstz_compress(internal) ,
1843 FUNCTION 4 gbt_decompress(internal) ,
1844 FUNCTION 5 gbt_ts_penalty(internal,internal,internal) ,
1845 FUNCTION 6 gbt_ts_picksplit(internal,internal) ,
1846 FUNCTION 7 gbt_ts_same(internal,internal,internal);
1850 -- Name: gist_timetz_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1853 CREATE OPERATOR FAMILY gist_timetz_ops USING gist;
1857 -- Name: gist_timetz_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1860 CREATE OPERATOR CLASS gist_timetz_ops
1861 DEFAULT FOR TYPE time with time zone USING gist AS
1862 STORAGE gbtreekey16 ,
1863 OPERATOR 1 <(time with time zone,time with time zone) ,
1864 OPERATOR 2 <=(time with time zone,time with time zone) ,
1865 OPERATOR 3 =(time with time zone,time with time zone) ,
1866 OPERATOR 4 >=(time with time zone,time with time zone) ,
1867 OPERATOR 5 >(time with time zone,time with time zone) ,
1868 FUNCTION 1 gbt_timetz_consistent(internal,time with time zone,smallint,oid,internal) ,
1869 FUNCTION 2 gbt_time_union(bytea,internal) ,
1870 FUNCTION 3 gbt_timetz_compress(internal) ,
1871 FUNCTION 4 gbt_decompress(internal) ,
1872 FUNCTION 5 gbt_time_penalty(internal,internal,internal) ,
1873 FUNCTION 6 gbt_time_picksplit(internal,internal) ,
1874 FUNCTION 7 gbt_time_same(internal,internal,internal);
1878 -- Name: gist_vbit_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
1881 CREATE OPERATOR FAMILY gist_vbit_ops USING gist;
1885 -- Name: gist_vbit_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
1888 CREATE OPERATOR CLASS gist_vbit_ops
1889 DEFAULT FOR TYPE bit varying USING gist AS
1890 STORAGE gbtreekey_var ,
1891 OPERATOR 1 <(bit varying,bit varying) ,
1892 OPERATOR 2 <=(bit varying,bit varying) ,
1893 OPERATOR 3 =(bit varying,bit varying) ,
1894 OPERATOR 4 >=(bit varying,bit varying) ,
1895 OPERATOR 5 >(bit varying,bit varying) ,
1896 FUNCTION 1 gbt_bit_consistent(internal,bit,smallint,oid,internal) ,
1897 FUNCTION 2 gbt_bit_union(bytea,internal) ,
1898 FUNCTION 3 gbt_bit_compress(internal) ,
1899 FUNCTION 4 gbt_var_decompress(internal) ,
1900 FUNCTION 5 gbt_bit_penalty(internal,internal,internal) ,
1901 FUNCTION 6 gbt_bit_picksplit(internal,internal) ,
1902 FUNCTION 7 gbt_bit_same(internal,internal,internal);
1905 SET default_tablespace = '';
1907 SET default_with_oids = false;
1910 -- Name: acls; Type: TABLE; Schema: public; Owner: -; Tablespace:
1914 id integer NOT NULL,
1916 k character varying(255) NOT NULL,
1917 v character varying(255),
1918 domain character varying(255)
1923 -- Name: acls_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1926 CREATE SEQUENCE acls_id_seq
1935 -- Name: acls_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1938 ALTER SEQUENCE acls_id_seq OWNED BY acls.id;
1942 -- Name: changeset_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
1945 CREATE TABLE changeset_tags (
1946 changeset_id bigint NOT NULL,
1947 k character varying(255) DEFAULT ''::character varying NOT NULL,
1948 v character varying(255) DEFAULT ''::character varying NOT NULL
1953 -- Name: changesets; Type: TABLE; Schema: public; Owner: -; Tablespace:
1956 CREATE TABLE changesets (
1958 user_id bigint NOT NULL,
1959 created_at timestamp without time zone NOT NULL,
1964 closed_at timestamp without time zone NOT NULL,
1965 num_changes integer DEFAULT 0 NOT NULL
1970 -- Name: changesets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1973 CREATE SEQUENCE changesets_id_seq
1982 -- Name: changesets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1985 ALTER SEQUENCE changesets_id_seq OWNED BY changesets.id;
1989 -- Name: client_applications; Type: TABLE; Schema: public; Owner: -; Tablespace:
1992 CREATE TABLE client_applications (
1993 id integer NOT NULL,
1994 name character varying(255),
1995 url character varying(255),
1996 support_url character varying(255),
1997 callback_url character varying(255),
1998 key character varying(50),
1999 secret character varying(50),
2001 created_at timestamp without time zone,
2002 updated_at timestamp without time zone,
2003 allow_read_prefs boolean DEFAULT false NOT NULL,
2004 allow_write_prefs boolean DEFAULT false NOT NULL,
2005 allow_write_diary boolean DEFAULT false NOT NULL,
2006 allow_write_api boolean DEFAULT false NOT NULL,
2007 allow_read_gpx boolean DEFAULT false NOT NULL,
2008 allow_write_gpx boolean DEFAULT false NOT NULL
2013 -- Name: client_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2016 CREATE SEQUENCE client_applications_id_seq
2025 -- Name: client_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2028 ALTER SEQUENCE client_applications_id_seq OWNED BY client_applications.id;
2032 -- Name: countries; Type: TABLE; Schema: public; Owner: -; Tablespace:
2035 CREATE TABLE countries (
2036 id integer NOT NULL,
2037 code character varying(2) NOT NULL,
2038 min_lat double precision NOT NULL,
2039 max_lat double precision NOT NULL,
2040 min_lon double precision NOT NULL,
2041 max_lon double precision NOT NULL
2046 -- Name: countries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2049 CREATE SEQUENCE countries_id_seq
2058 -- Name: countries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2061 ALTER SEQUENCE countries_id_seq OWNED BY countries.id;
2065 -- Name: current_node_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
2068 CREATE TABLE current_node_tags (
2069 node_id bigint NOT NULL,
2070 k character varying(255) DEFAULT ''::character varying NOT NULL,
2071 v character varying(255) DEFAULT ''::character varying NOT NULL
2076 -- Name: current_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
2079 CREATE TABLE current_nodes (
2081 latitude integer NOT NULL,
2082 longitude integer NOT NULL,
2083 changeset_id bigint NOT NULL,
2084 visible boolean NOT NULL,
2085 "timestamp" timestamp without time zone NOT NULL,
2086 tile bigint NOT NULL,
2087 version bigint NOT NULL
2092 -- Name: current_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2095 CREATE SEQUENCE current_nodes_id_seq
2104 -- Name: current_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2107 ALTER SEQUENCE current_nodes_id_seq OWNED BY current_nodes.id;
2111 -- Name: current_relation_members; Type: TABLE; Schema: public; Owner: -; Tablespace:
2114 CREATE TABLE current_relation_members (
2115 relation_id bigint NOT NULL,
2116 member_type nwr_enum NOT NULL,
2117 member_id bigint NOT NULL,
2118 member_role character varying(255) NOT NULL,
2119 sequence_id integer DEFAULT 0 NOT NULL
2124 -- Name: current_relation_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
2127 CREATE TABLE current_relation_tags (
2128 relation_id bigint NOT NULL,
2129 k character varying(255) DEFAULT ''::character varying NOT NULL,
2130 v character varying(255) DEFAULT ''::character varying NOT NULL
2135 -- Name: current_relations; Type: TABLE; Schema: public; Owner: -; Tablespace:
2138 CREATE TABLE current_relations (
2140 changeset_id bigint NOT NULL,
2141 "timestamp" timestamp without time zone NOT NULL,
2142 visible boolean NOT NULL,
2143 version bigint NOT NULL
2148 -- Name: current_relations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2151 CREATE SEQUENCE current_relations_id_seq
2160 -- Name: current_relations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2163 ALTER SEQUENCE current_relations_id_seq OWNED BY current_relations.id;
2167 -- Name: current_way_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
2170 CREATE TABLE current_way_nodes (
2171 way_id bigint NOT NULL,
2172 node_id bigint NOT NULL,
2173 sequence_id bigint NOT NULL
2178 -- Name: current_way_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
2181 CREATE TABLE current_way_tags (
2182 way_id bigint NOT NULL,
2183 k character varying(255) DEFAULT ''::character varying NOT NULL,
2184 v character varying(255) DEFAULT ''::character varying NOT NULL
2189 -- Name: current_ways; Type: TABLE; Schema: public; Owner: -; Tablespace:
2192 CREATE TABLE current_ways (
2194 changeset_id bigint NOT NULL,
2195 "timestamp" timestamp without time zone NOT NULL,
2196 visible boolean NOT NULL,
2197 version bigint NOT NULL
2202 -- Name: current_ways_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2205 CREATE SEQUENCE current_ways_id_seq
2214 -- Name: current_ways_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2217 ALTER SEQUENCE current_ways_id_seq OWNED BY current_ways.id;
2221 -- Name: diary_comments; Type: TABLE; Schema: public; Owner: -; Tablespace:
2224 CREATE TABLE diary_comments (
2226 diary_entry_id bigint NOT NULL,
2227 user_id bigint NOT NULL,
2229 created_at timestamp without time zone NOT NULL,
2230 updated_at timestamp without time zone NOT NULL,
2231 visible boolean DEFAULT true NOT NULL
2236 -- Name: diary_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2239 CREATE SEQUENCE diary_comments_id_seq
2248 -- Name: diary_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2251 ALTER SEQUENCE diary_comments_id_seq OWNED BY diary_comments.id;
2255 -- Name: diary_entries; Type: TABLE; Schema: public; Owner: -; Tablespace:
2258 CREATE TABLE diary_entries (
2260 user_id bigint NOT NULL,
2261 title character varying(255) NOT NULL,
2263 created_at timestamp without time zone NOT NULL,
2264 updated_at timestamp without time zone NOT NULL,
2265 latitude double precision,
2266 longitude double precision,
2267 language_code character varying(255) DEFAULT 'en'::character varying NOT NULL,
2268 visible boolean DEFAULT true NOT NULL
2273 -- Name: diary_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2276 CREATE SEQUENCE diary_entries_id_seq
2285 -- Name: diary_entries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2288 ALTER SEQUENCE diary_entries_id_seq OWNED BY diary_entries.id;
2292 -- Name: friends; Type: TABLE; Schema: public; Owner: -; Tablespace:
2295 CREATE TABLE friends (
2297 user_id bigint NOT NULL,
2298 friend_user_id bigint NOT NULL
2303 -- Name: friends_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2306 CREATE SEQUENCE friends_id_seq
2315 -- Name: friends_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2318 ALTER SEQUENCE friends_id_seq OWNED BY friends.id;
2322 -- Name: gps_points; Type: TABLE; Schema: public; Owner: -; Tablespace:
2325 CREATE TABLE gps_points (
2326 altitude double precision,
2327 trackid integer NOT NULL,
2328 latitude integer NOT NULL,
2329 longitude integer NOT NULL,
2330 gpx_id bigint NOT NULL,
2331 "timestamp" timestamp without time zone,
2337 -- Name: gpx_file_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
2340 CREATE TABLE gpx_file_tags (
2341 gpx_id bigint DEFAULT 0 NOT NULL,
2342 tag character varying(255) NOT NULL,
2348 -- Name: gpx_file_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2351 CREATE SEQUENCE gpx_file_tags_id_seq
2360 -- Name: gpx_file_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2363 ALTER SEQUENCE gpx_file_tags_id_seq OWNED BY gpx_file_tags.id;
2367 -- Name: gpx_files; Type: TABLE; Schema: public; Owner: -; Tablespace:
2370 CREATE TABLE gpx_files (
2372 user_id bigint NOT NULL,
2373 visible boolean DEFAULT true NOT NULL,
2374 name character varying(255) DEFAULT ''::character varying NOT NULL,
2376 latitude double precision,
2377 longitude double precision,
2378 "timestamp" timestamp without time zone NOT NULL,
2379 description character varying(255) DEFAULT ''::character varying NOT NULL,
2380 inserted boolean NOT NULL,
2381 visibility gpx_visibility_enum DEFAULT 'public'::gpx_visibility_enum NOT NULL
2386 -- Name: gpx_files_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2389 CREATE SEQUENCE gpx_files_id_seq
2398 -- Name: gpx_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2401 ALTER SEQUENCE gpx_files_id_seq OWNED BY gpx_files.id;
2405 -- Name: languages; Type: TABLE; Schema: public; Owner: -; Tablespace:
2408 CREATE TABLE languages (
2409 code character varying(255) NOT NULL,
2410 english_name character varying(255) NOT NULL,
2411 native_name character varying(255)
2416 -- Name: messages; Type: TABLE; Schema: public; Owner: -; Tablespace:
2419 CREATE TABLE messages (
2421 from_user_id bigint NOT NULL,
2422 title character varying(255) NOT NULL,
2424 sent_on timestamp without time zone NOT NULL,
2425 message_read boolean DEFAULT false NOT NULL,
2426 to_user_id bigint NOT NULL,
2427 to_user_visible boolean DEFAULT true NOT NULL,
2428 from_user_visible boolean DEFAULT true NOT NULL
2433 -- Name: messages_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2436 CREATE SEQUENCE messages_id_seq
2445 -- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2448 ALTER SEQUENCE messages_id_seq OWNED BY messages.id;
2452 -- Name: node_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
2455 CREATE TABLE node_tags (
2456 node_id bigint NOT NULL,
2457 version bigint NOT NULL,
2458 k character varying(255) DEFAULT ''::character varying NOT NULL,
2459 v character varying(255) DEFAULT ''::character varying NOT NULL
2464 -- Name: nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
2467 CREATE TABLE nodes (
2468 node_id bigint NOT NULL,
2469 latitude integer NOT NULL,
2470 longitude integer NOT NULL,
2471 changeset_id bigint NOT NULL,
2472 visible boolean NOT NULL,
2473 "timestamp" timestamp without time zone NOT NULL,
2474 tile bigint NOT NULL,
2475 version bigint NOT NULL
2480 -- Name: oauth_nonces; Type: TABLE; Schema: public; Owner: -; Tablespace:
2483 CREATE TABLE oauth_nonces (
2484 id integer NOT NULL,
2485 nonce character varying(255),
2486 "timestamp" integer,
2487 created_at timestamp without time zone,
2488 updated_at timestamp without time zone
2493 -- Name: oauth_nonces_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2496 CREATE SEQUENCE oauth_nonces_id_seq
2505 -- Name: oauth_nonces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2508 ALTER SEQUENCE oauth_nonces_id_seq OWNED BY oauth_nonces.id;
2512 -- Name: oauth_tokens; Type: TABLE; Schema: public; Owner: -; Tablespace:
2515 CREATE TABLE oauth_tokens (
2516 id integer NOT NULL,
2518 type character varying(20),
2519 client_application_id integer,
2520 token character varying(50),
2521 secret character varying(50),
2522 authorized_at timestamp without time zone,
2523 invalidated_at timestamp without time zone,
2524 created_at timestamp without time zone,
2525 updated_at timestamp without time zone,
2526 allow_read_prefs boolean DEFAULT false NOT NULL,
2527 allow_write_prefs boolean DEFAULT false NOT NULL,
2528 allow_write_diary boolean DEFAULT false NOT NULL,
2529 allow_write_api boolean DEFAULT false NOT NULL,
2530 allow_read_gpx boolean DEFAULT false NOT NULL,
2531 allow_write_gpx boolean DEFAULT false NOT NULL,
2532 callback_url character varying(255),
2533 verifier character varying(20),
2534 scope character varying(255),
2535 valid_to timestamp without time zone
2540 -- Name: oauth_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2543 CREATE SEQUENCE oauth_tokens_id_seq
2552 -- Name: oauth_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2555 ALTER SEQUENCE oauth_tokens_id_seq OWNED BY oauth_tokens.id;
2559 -- Name: relation_members; Type: TABLE; Schema: public; Owner: -; Tablespace:
2562 CREATE TABLE relation_members (
2563 relation_id bigint DEFAULT 0 NOT NULL,
2564 member_type nwr_enum NOT NULL,
2565 member_id bigint NOT NULL,
2566 member_role character varying(255) NOT NULL,
2567 version bigint DEFAULT 0 NOT NULL,
2568 sequence_id integer DEFAULT 0 NOT NULL
2573 -- Name: relation_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
2576 CREATE TABLE relation_tags (
2577 relation_id bigint DEFAULT 0 NOT NULL,
2578 k character varying(255) DEFAULT ''::character varying NOT NULL,
2579 v character varying(255) DEFAULT ''::character varying NOT NULL,
2580 version bigint NOT NULL
2585 -- Name: relations; Type: TABLE; Schema: public; Owner: -; Tablespace:
2588 CREATE TABLE relations (
2589 relation_id bigint DEFAULT 0 NOT NULL,
2590 changeset_id bigint NOT NULL,
2591 "timestamp" timestamp without time zone NOT NULL,
2592 version bigint NOT NULL,
2593 visible boolean DEFAULT true NOT NULL
2598 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace:
2601 CREATE TABLE schema_migrations (
2602 version character varying(255) NOT NULL
2607 -- Name: sessions; Type: TABLE; Schema: public; Owner: -; Tablespace:
2610 CREATE TABLE sessions (
2611 id integer NOT NULL,
2612 session_id character varying(255),
2614 created_at timestamp without time zone,
2615 updated_at timestamp without time zone
2620 -- Name: sessions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2623 CREATE SEQUENCE sessions_id_seq
2632 -- Name: sessions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2635 ALTER SEQUENCE sessions_id_seq OWNED BY sessions.id;
2639 -- Name: user_blocks; Type: TABLE; Schema: public; Owner: -; Tablespace:
2642 CREATE TABLE user_blocks (
2643 id integer NOT NULL,
2644 user_id bigint NOT NULL,
2645 creator_id bigint NOT NULL,
2646 reason text NOT NULL,
2647 ends_at timestamp without time zone NOT NULL,
2648 needs_view boolean DEFAULT false NOT NULL,
2650 created_at timestamp without time zone,
2651 updated_at timestamp without time zone
2656 -- Name: user_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2659 CREATE SEQUENCE user_blocks_id_seq
2668 -- Name: user_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2671 ALTER SEQUENCE user_blocks_id_seq OWNED BY user_blocks.id;
2675 -- Name: user_preferences; Type: TABLE; Schema: public; Owner: -; Tablespace:
2678 CREATE TABLE user_preferences (
2679 user_id bigint NOT NULL,
2680 k character varying(255) NOT NULL,
2681 v character varying(255) NOT NULL
2686 -- Name: user_roles; Type: TABLE; Schema: public; Owner: -; Tablespace:
2689 CREATE TABLE user_roles (
2690 id integer NOT NULL,
2691 user_id bigint NOT NULL,
2692 created_at timestamp without time zone,
2693 updated_at timestamp without time zone,
2694 role user_role_enum NOT NULL,
2695 granter_id bigint NOT NULL
2700 -- Name: user_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2703 CREATE SEQUENCE user_roles_id_seq
2712 -- Name: user_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2715 ALTER SEQUENCE user_roles_id_seq OWNED BY user_roles.id;
2719 -- Name: user_tokens; Type: TABLE; Schema: public; Owner: -; Tablespace:
2722 CREATE TABLE user_tokens (
2724 user_id bigint NOT NULL,
2725 token character varying(255) NOT NULL,
2726 expiry timestamp without time zone NOT NULL,
2732 -- Name: user_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2735 CREATE SEQUENCE user_tokens_id_seq
2744 -- Name: user_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2747 ALTER SEQUENCE user_tokens_id_seq OWNED BY user_tokens.id;
2751 -- Name: users; Type: TABLE; Schema: public; Owner: -; Tablespace:
2754 CREATE TABLE users (
2755 email character varying(255) NOT NULL,
2757 pass_crypt character varying(255) NOT NULL,
2758 creation_time timestamp without time zone NOT NULL,
2759 display_name character varying(255) DEFAULT ''::character varying NOT NULL,
2760 data_public boolean DEFAULT false NOT NULL,
2761 description text DEFAULT ''::text NOT NULL,
2762 home_lat double precision,
2763 home_lon double precision,
2764 home_zoom smallint DEFAULT 3,
2765 nearby integer DEFAULT 50,
2766 pass_salt character varying(255),
2767 image_file_name text,
2768 email_valid boolean DEFAULT false NOT NULL,
2769 new_email character varying(255),
2770 creation_ip character varying(255),
2771 languages character varying(255),
2772 status user_status_enum DEFAULT 'pending'::user_status_enum NOT NULL,
2773 terms_agreed timestamp without time zone,
2774 consider_pd boolean DEFAULT false NOT NULL,
2775 preferred_editor character varying(255),
2776 terms_seen boolean DEFAULT false NOT NULL,
2777 openid_url character varying(255),
2778 image_fingerprint character varying(255)
2783 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2786 CREATE SEQUENCE users_id_seq
2795 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
2798 ALTER SEQUENCE users_id_seq OWNED BY users.id;
2802 -- Name: way_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
2805 CREATE TABLE way_nodes (
2806 way_id bigint NOT NULL,
2807 node_id bigint NOT NULL,
2808 version bigint NOT NULL,
2809 sequence_id bigint NOT NULL
2814 -- Name: way_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
2817 CREATE TABLE way_tags (
2818 way_id bigint DEFAULT 0 NOT NULL,
2819 k character varying(255) NOT NULL,
2820 v character varying(255) NOT NULL,
2821 version bigint NOT NULL
2826 -- Name: ways; Type: TABLE; Schema: public; Owner: -; Tablespace:
2830 way_id bigint DEFAULT 0 NOT NULL,
2831 changeset_id bigint NOT NULL,
2832 "timestamp" timestamp without time zone NOT NULL,
2833 version bigint NOT NULL,
2834 visible boolean DEFAULT true NOT NULL
2839 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2842 ALTER TABLE acls ALTER COLUMN id SET DEFAULT nextval('acls_id_seq'::regclass);
2846 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2849 ALTER TABLE changesets ALTER COLUMN id SET DEFAULT nextval('changesets_id_seq'::regclass);
2853 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2856 ALTER TABLE client_applications ALTER COLUMN id SET DEFAULT nextval('client_applications_id_seq'::regclass);
2860 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2863 ALTER TABLE countries ALTER COLUMN id SET DEFAULT nextval('countries_id_seq'::regclass);
2867 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2870 ALTER TABLE current_nodes ALTER COLUMN id SET DEFAULT nextval('current_nodes_id_seq'::regclass);
2874 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2877 ALTER TABLE current_relations ALTER COLUMN id SET DEFAULT nextval('current_relations_id_seq'::regclass);
2881 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2884 ALTER TABLE current_ways ALTER COLUMN id SET DEFAULT nextval('current_ways_id_seq'::regclass);
2888 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2891 ALTER TABLE diary_comments ALTER COLUMN id SET DEFAULT nextval('diary_comments_id_seq'::regclass);
2895 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2898 ALTER TABLE diary_entries ALTER COLUMN id SET DEFAULT nextval('diary_entries_id_seq'::regclass);
2902 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2905 ALTER TABLE friends ALTER COLUMN id SET DEFAULT nextval('friends_id_seq'::regclass);
2909 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2912 ALTER TABLE gpx_file_tags ALTER COLUMN id SET DEFAULT nextval('gpx_file_tags_id_seq'::regclass);
2916 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2919 ALTER TABLE gpx_files ALTER COLUMN id SET DEFAULT nextval('gpx_files_id_seq'::regclass);
2923 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2926 ALTER TABLE messages ALTER COLUMN id SET DEFAULT nextval('messages_id_seq'::regclass);
2930 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2933 ALTER TABLE oauth_nonces ALTER COLUMN id SET DEFAULT nextval('oauth_nonces_id_seq'::regclass);
2937 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2940 ALTER TABLE oauth_tokens ALTER COLUMN id SET DEFAULT nextval('oauth_tokens_id_seq'::regclass);
2944 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2947 ALTER TABLE sessions ALTER COLUMN id SET DEFAULT nextval('sessions_id_seq'::regclass);
2951 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2954 ALTER TABLE user_blocks ALTER COLUMN id SET DEFAULT nextval('user_blocks_id_seq'::regclass);
2958 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2961 ALTER TABLE user_roles ALTER COLUMN id SET DEFAULT nextval('user_roles_id_seq'::regclass);
2965 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2968 ALTER TABLE user_tokens ALTER COLUMN id SET DEFAULT nextval('user_tokens_id_seq'::regclass);
2972 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
2975 ALTER TABLE users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
2979 -- Name: acls_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2982 ALTER TABLE ONLY acls
2983 ADD CONSTRAINT acls_pkey PRIMARY KEY (id);
2987 -- Name: changesets_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2990 ALTER TABLE ONLY changesets
2991 ADD CONSTRAINT changesets_pkey PRIMARY KEY (id);
2995 -- Name: client_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
2998 ALTER TABLE ONLY client_applications
2999 ADD CONSTRAINT client_applications_pkey PRIMARY KEY (id);
3003 -- Name: countries_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3006 ALTER TABLE ONLY countries
3007 ADD CONSTRAINT countries_pkey PRIMARY KEY (id);
3011 -- Name: current_node_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3014 ALTER TABLE ONLY current_node_tags
3015 ADD CONSTRAINT current_node_tags_pkey PRIMARY KEY (node_id, k);
3019 -- Name: current_nodes_pkey1; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3022 ALTER TABLE ONLY current_nodes
3023 ADD CONSTRAINT current_nodes_pkey1 PRIMARY KEY (id);
3027 -- Name: current_relation_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3030 ALTER TABLE ONLY current_relation_members
3031 ADD CONSTRAINT current_relation_members_pkey PRIMARY KEY (relation_id, member_type, member_id, member_role, sequence_id);
3035 -- Name: current_relation_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3038 ALTER TABLE ONLY current_relation_tags
3039 ADD CONSTRAINT current_relation_tags_pkey PRIMARY KEY (relation_id, k);
3043 -- Name: current_relations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3046 ALTER TABLE ONLY current_relations
3047 ADD CONSTRAINT current_relations_pkey PRIMARY KEY (id);
3051 -- Name: current_way_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3054 ALTER TABLE ONLY current_way_nodes
3055 ADD CONSTRAINT current_way_nodes_pkey PRIMARY KEY (way_id, sequence_id);
3059 -- Name: current_way_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3062 ALTER TABLE ONLY current_way_tags
3063 ADD CONSTRAINT current_way_tags_pkey PRIMARY KEY (way_id, k);
3067 -- Name: current_ways_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3070 ALTER TABLE ONLY current_ways
3071 ADD CONSTRAINT current_ways_pkey PRIMARY KEY (id);
3075 -- Name: diary_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3078 ALTER TABLE ONLY diary_comments
3079 ADD CONSTRAINT diary_comments_pkey PRIMARY KEY (id);
3083 -- Name: diary_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3086 ALTER TABLE ONLY diary_entries
3087 ADD CONSTRAINT diary_entries_pkey PRIMARY KEY (id);
3091 -- Name: friends_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3094 ALTER TABLE ONLY friends
3095 ADD CONSTRAINT friends_pkey PRIMARY KEY (id);
3099 -- Name: gpx_file_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3102 ALTER TABLE ONLY gpx_file_tags
3103 ADD CONSTRAINT gpx_file_tags_pkey PRIMARY KEY (id);
3107 -- Name: gpx_files_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3110 ALTER TABLE ONLY gpx_files
3111 ADD CONSTRAINT gpx_files_pkey PRIMARY KEY (id);
3115 -- Name: languages_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3118 ALTER TABLE ONLY languages
3119 ADD CONSTRAINT languages_pkey PRIMARY KEY (code);
3123 -- Name: messages_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3126 ALTER TABLE ONLY messages
3127 ADD CONSTRAINT messages_pkey PRIMARY KEY (id);
3131 -- Name: node_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3134 ALTER TABLE ONLY node_tags
3135 ADD CONSTRAINT node_tags_pkey PRIMARY KEY (node_id, version, k);
3139 -- Name: nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3142 ALTER TABLE ONLY nodes
3143 ADD CONSTRAINT nodes_pkey PRIMARY KEY (node_id, version);
3147 -- Name: oauth_nonces_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3150 ALTER TABLE ONLY oauth_nonces
3151 ADD CONSTRAINT oauth_nonces_pkey PRIMARY KEY (id);
3155 -- Name: oauth_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3158 ALTER TABLE ONLY oauth_tokens
3159 ADD CONSTRAINT oauth_tokens_pkey PRIMARY KEY (id);
3163 -- Name: relation_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3166 ALTER TABLE ONLY relation_members
3167 ADD CONSTRAINT relation_members_pkey PRIMARY KEY (relation_id, version, member_type, member_id, member_role, sequence_id);
3171 -- Name: relation_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3174 ALTER TABLE ONLY relation_tags
3175 ADD CONSTRAINT relation_tags_pkey PRIMARY KEY (relation_id, version, k);
3179 -- Name: relations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3182 ALTER TABLE ONLY relations
3183 ADD CONSTRAINT relations_pkey PRIMARY KEY (relation_id, version);
3187 -- Name: sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3190 ALTER TABLE ONLY sessions
3191 ADD CONSTRAINT sessions_pkey PRIMARY KEY (id);
3195 -- Name: user_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3198 ALTER TABLE ONLY user_blocks
3199 ADD CONSTRAINT user_blocks_pkey PRIMARY KEY (id);
3203 -- Name: user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3206 ALTER TABLE ONLY user_preferences
3207 ADD CONSTRAINT user_preferences_pkey PRIMARY KEY (user_id, k);
3211 -- Name: user_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3214 ALTER TABLE ONLY user_roles
3215 ADD CONSTRAINT user_roles_pkey PRIMARY KEY (id);
3219 -- Name: user_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3222 ALTER TABLE ONLY user_tokens
3223 ADD CONSTRAINT user_tokens_pkey PRIMARY KEY (id);
3227 -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3230 ALTER TABLE ONLY users
3231 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
3235 -- Name: way_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3238 ALTER TABLE ONLY way_nodes
3239 ADD CONSTRAINT way_nodes_pkey PRIMARY KEY (way_id, version, sequence_id);
3243 -- Name: way_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3246 ALTER TABLE ONLY way_tags
3247 ADD CONSTRAINT way_tags_pkey PRIMARY KEY (way_id, version, k);
3251 -- Name: ways_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
3254 ALTER TABLE ONLY ways
3255 ADD CONSTRAINT ways_pkey PRIMARY KEY (way_id, version);
3259 -- Name: acls_k_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3262 CREATE INDEX acls_k_idx ON acls USING btree (k);
3266 -- Name: changeset_tags_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3269 CREATE INDEX changeset_tags_id_idx ON changeset_tags USING btree (changeset_id);
3273 -- Name: changesets_bbox_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3276 CREATE INDEX changesets_bbox_idx ON changesets USING gist (min_lat, max_lat, min_lon, max_lon);
3280 -- Name: changesets_closed_at_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3283 CREATE INDEX changesets_closed_at_idx ON changesets USING btree (closed_at);
3287 -- Name: changesets_created_at_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3290 CREATE INDEX changesets_created_at_idx ON changesets USING btree (created_at);
3294 -- Name: changesets_user_id_created_at_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3297 CREATE INDEX changesets_user_id_created_at_idx ON changesets USING btree (user_id, created_at);
3301 -- Name: changesets_user_id_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3304 CREATE INDEX changesets_user_id_id_idx ON changesets USING btree (user_id, id);
3308 -- Name: countries_code_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3311 CREATE UNIQUE INDEX countries_code_idx ON countries USING btree (code);
3315 -- Name: current_nodes_tile_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3318 CREATE INDEX current_nodes_tile_idx ON current_nodes USING btree (tile);
3322 -- Name: current_nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3325 CREATE INDEX current_nodes_timestamp_idx ON current_nodes USING btree ("timestamp");
3329 -- Name: current_relation_members_member_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3332 CREATE INDEX current_relation_members_member_idx ON current_relation_members USING btree (member_type, member_id);
3336 -- Name: current_relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3339 CREATE INDEX current_relations_timestamp_idx ON current_relations USING btree ("timestamp");
3343 -- Name: current_way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3346 CREATE INDEX current_way_nodes_node_idx ON current_way_nodes USING btree (node_id);
3350 -- Name: current_ways_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3353 CREATE INDEX current_ways_timestamp_idx ON current_ways USING btree ("timestamp");
3357 -- Name: diary_comment_user_id_created_at_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
3360 CREATE INDEX diary_comment_user_id_created_at_index ON diary_comments USING btree (user_id, created_at);
3364 -- Name: diary_comments_entry_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3367 CREATE UNIQUE INDEX diary_comments_entry_id_idx ON diary_comments USING btree (diary_entry_id, id);
3371 -- Name: diary_entry_created_at_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
3374 CREATE INDEX diary_entry_created_at_index ON diary_entries USING btree (created_at);
3378 -- Name: diary_entry_language_code_created_at_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
3381 CREATE INDEX diary_entry_language_code_created_at_index ON diary_entries USING btree (language_code, created_at);
3385 -- Name: diary_entry_user_id_created_at_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
3388 CREATE INDEX diary_entry_user_id_created_at_index ON diary_entries USING btree (user_id, created_at);
3392 -- Name: friends_user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3395 CREATE INDEX friends_user_id_idx ON friends USING btree (user_id);
3399 -- Name: gpx_file_tags_gpxid_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3402 CREATE INDEX gpx_file_tags_gpxid_idx ON gpx_file_tags USING btree (gpx_id);
3406 -- Name: gpx_file_tags_tag_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3409 CREATE INDEX gpx_file_tags_tag_idx ON gpx_file_tags USING btree (tag);
3413 -- Name: gpx_files_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3416 CREATE INDEX gpx_files_timestamp_idx ON gpx_files USING btree ("timestamp");
3420 -- Name: gpx_files_user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3423 CREATE INDEX gpx_files_user_id_idx ON gpx_files USING btree (user_id);
3427 -- Name: gpx_files_visible_visibility_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3430 CREATE INDEX gpx_files_visible_visibility_idx ON gpx_files USING btree (visible, visibility);
3434 -- Name: index_client_applications_on_key; Type: INDEX; Schema: public; Owner: -; Tablespace:
3437 CREATE UNIQUE INDEX index_client_applications_on_key ON client_applications USING btree (key);
3441 -- Name: index_oauth_nonces_on_nonce_and_timestamp; Type: INDEX; Schema: public; Owner: -; Tablespace:
3444 CREATE UNIQUE INDEX index_oauth_nonces_on_nonce_and_timestamp ON oauth_nonces USING btree (nonce, "timestamp");
3448 -- Name: index_oauth_tokens_on_token; Type: INDEX; Schema: public; Owner: -; Tablespace:
3451 CREATE UNIQUE INDEX index_oauth_tokens_on_token ON oauth_tokens USING btree (token);
3455 -- Name: index_user_blocks_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
3458 CREATE INDEX index_user_blocks_on_user_id ON user_blocks USING btree (user_id);
3462 -- Name: messages_from_user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3465 CREATE INDEX messages_from_user_id_idx ON messages USING btree (from_user_id);
3469 -- Name: messages_to_user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3472 CREATE INDEX messages_to_user_id_idx ON messages USING btree (to_user_id);
3476 -- Name: nodes_changeset_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3479 CREATE INDEX nodes_changeset_id_idx ON nodes USING btree (changeset_id);
3483 -- Name: nodes_tile_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3486 CREATE INDEX nodes_tile_idx ON nodes USING btree (tile);
3490 -- Name: nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3493 CREATE INDEX nodes_timestamp_idx ON nodes USING btree ("timestamp");
3497 -- Name: points_gpxid_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3500 CREATE INDEX points_gpxid_idx ON gps_points USING btree (gpx_id);
3504 -- Name: points_tile_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3507 CREATE INDEX points_tile_idx ON gps_points USING btree (tile);
3511 -- Name: relation_members_member_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3514 CREATE INDEX relation_members_member_idx ON relation_members USING btree (member_type, member_id);
3518 -- Name: relations_changeset_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3521 CREATE INDEX relations_changeset_id_idx ON relations USING btree (changeset_id);
3525 -- Name: relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3528 CREATE INDEX relations_timestamp_idx ON relations USING btree ("timestamp");
3532 -- Name: sessions_session_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3535 CREATE UNIQUE INDEX sessions_session_id_idx ON sessions USING btree (session_id);
3539 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace:
3542 CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
3546 -- Name: user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3549 CREATE INDEX user_id_idx ON friends USING btree (friend_user_id);
3553 -- Name: user_openid_url_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3556 CREATE UNIQUE INDEX user_openid_url_idx ON users USING btree (openid_url);
3560 -- Name: user_roles_id_role_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
3563 CREATE UNIQUE INDEX user_roles_id_role_unique ON user_roles USING btree (user_id, role);
3567 -- Name: user_tokens_token_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3570 CREATE UNIQUE INDEX user_tokens_token_idx ON user_tokens USING btree (token);
3574 -- Name: user_tokens_user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3577 CREATE INDEX user_tokens_user_id_idx ON user_tokens USING btree (user_id);
3581 -- Name: users_display_name_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3584 CREATE UNIQUE INDEX users_display_name_idx ON users USING btree (display_name);
3588 -- Name: users_display_name_lower_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3591 CREATE INDEX users_display_name_lower_idx ON users USING btree (lower((display_name)::text));
3595 -- Name: users_email_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3598 CREATE UNIQUE INDEX users_email_idx ON users USING btree (email);
3602 -- Name: users_email_lower_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3605 CREATE INDEX users_email_lower_idx ON users USING btree (lower((email)::text));
3609 -- Name: way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3612 CREATE INDEX way_nodes_node_idx ON way_nodes USING btree (node_id);
3616 -- Name: ways_changeset_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3619 CREATE INDEX ways_changeset_id_idx ON ways USING btree (changeset_id);
3623 -- Name: ways_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
3626 CREATE INDEX ways_timestamp_idx ON ways USING btree ("timestamp");
3630 -- Name: changeset_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3633 ALTER TABLE ONLY changeset_tags
3634 ADD CONSTRAINT changeset_tags_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
3638 -- Name: changesets_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3641 ALTER TABLE ONLY changesets
3642 ADD CONSTRAINT changesets_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
3646 -- Name: client_applications_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3649 ALTER TABLE ONLY client_applications
3650 ADD CONSTRAINT client_applications_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
3654 -- Name: current_node_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3657 ALTER TABLE ONLY current_node_tags
3658 ADD CONSTRAINT current_node_tags_id_fkey FOREIGN KEY (node_id) REFERENCES current_nodes(id);
3662 -- Name: current_nodes_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3665 ALTER TABLE ONLY current_nodes
3666 ADD CONSTRAINT current_nodes_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
3670 -- Name: current_relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3673 ALTER TABLE ONLY current_relation_members
3674 ADD CONSTRAINT current_relation_members_id_fkey FOREIGN KEY (relation_id) REFERENCES current_relations(id);
3678 -- Name: current_relation_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3681 ALTER TABLE ONLY current_relation_tags
3682 ADD CONSTRAINT current_relation_tags_id_fkey FOREIGN KEY (relation_id) REFERENCES current_relations(id);
3686 -- Name: current_relations_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3689 ALTER TABLE ONLY current_relations
3690 ADD CONSTRAINT current_relations_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
3694 -- Name: current_way_nodes_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3697 ALTER TABLE ONLY current_way_nodes
3698 ADD CONSTRAINT current_way_nodes_id_fkey FOREIGN KEY (way_id) REFERENCES current_ways(id);
3702 -- Name: current_way_nodes_node_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3705 ALTER TABLE ONLY current_way_nodes
3706 ADD CONSTRAINT current_way_nodes_node_id_fkey FOREIGN KEY (node_id) REFERENCES current_nodes(id);
3710 -- Name: current_way_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3713 ALTER TABLE ONLY current_way_tags
3714 ADD CONSTRAINT current_way_tags_id_fkey FOREIGN KEY (way_id) REFERENCES current_ways(id);
3718 -- Name: current_ways_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3721 ALTER TABLE ONLY current_ways
3722 ADD CONSTRAINT current_ways_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
3726 -- Name: diary_comments_diary_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3729 ALTER TABLE ONLY diary_comments
3730 ADD CONSTRAINT diary_comments_diary_entry_id_fkey FOREIGN KEY (diary_entry_id) REFERENCES diary_entries(id);
3734 -- Name: diary_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3737 ALTER TABLE ONLY diary_comments
3738 ADD CONSTRAINT diary_comments_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
3742 -- Name: diary_entries_language_code_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3745 ALTER TABLE ONLY diary_entries
3746 ADD CONSTRAINT diary_entries_language_code_fkey FOREIGN KEY (language_code) REFERENCES languages(code);
3750 -- Name: diary_entries_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3753 ALTER TABLE ONLY diary_entries
3754 ADD CONSTRAINT diary_entries_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
3758 -- Name: friends_friend_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3761 ALTER TABLE ONLY friends
3762 ADD CONSTRAINT friends_friend_user_id_fkey FOREIGN KEY (friend_user_id) REFERENCES users(id);
3766 -- Name: friends_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3769 ALTER TABLE ONLY friends
3770 ADD CONSTRAINT friends_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
3774 -- Name: gps_points_gpx_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3777 ALTER TABLE ONLY gps_points
3778 ADD CONSTRAINT gps_points_gpx_id_fkey FOREIGN KEY (gpx_id) REFERENCES gpx_files(id);
3782 -- Name: gpx_file_tags_gpx_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3785 ALTER TABLE ONLY gpx_file_tags
3786 ADD CONSTRAINT gpx_file_tags_gpx_id_fkey FOREIGN KEY (gpx_id) REFERENCES gpx_files(id);
3790 -- Name: gpx_files_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3793 ALTER TABLE ONLY gpx_files
3794 ADD CONSTRAINT gpx_files_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
3798 -- Name: messages_from_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3801 ALTER TABLE ONLY messages
3802 ADD CONSTRAINT messages_from_user_id_fkey FOREIGN KEY (from_user_id) REFERENCES users(id);
3806 -- Name: messages_to_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3809 ALTER TABLE ONLY messages
3810 ADD CONSTRAINT messages_to_user_id_fkey FOREIGN KEY (to_user_id) REFERENCES users(id);
3814 -- Name: node_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3817 ALTER TABLE ONLY node_tags
3818 ADD CONSTRAINT node_tags_id_fkey FOREIGN KEY (node_id, version) REFERENCES nodes(node_id, version);
3822 -- Name: nodes_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3825 ALTER TABLE ONLY nodes
3826 ADD CONSTRAINT nodes_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
3830 -- Name: oauth_tokens_client_application_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3833 ALTER TABLE ONLY oauth_tokens
3834 ADD CONSTRAINT oauth_tokens_client_application_id_fkey FOREIGN KEY (client_application_id) REFERENCES client_applications(id);
3838 -- Name: oauth_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3841 ALTER TABLE ONLY oauth_tokens
3842 ADD CONSTRAINT oauth_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
3846 -- Name: relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3849 ALTER TABLE ONLY relation_members
3850 ADD CONSTRAINT relation_members_id_fkey FOREIGN KEY (relation_id, version) REFERENCES relations(relation_id, version);
3854 -- Name: relation_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3857 ALTER TABLE ONLY relation_tags
3858 ADD CONSTRAINT relation_tags_id_fkey FOREIGN KEY (relation_id, version) REFERENCES relations(relation_id, version);
3862 -- Name: relations_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3865 ALTER TABLE ONLY relations
3866 ADD CONSTRAINT relations_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
3870 -- Name: user_blocks_moderator_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3873 ALTER TABLE ONLY user_blocks
3874 ADD CONSTRAINT user_blocks_moderator_id_fkey FOREIGN KEY (creator_id) REFERENCES users(id);
3878 -- Name: user_blocks_revoker_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3881 ALTER TABLE ONLY user_blocks
3882 ADD CONSTRAINT user_blocks_revoker_id_fkey FOREIGN KEY (revoker_id) REFERENCES users(id);
3886 -- Name: user_blocks_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3889 ALTER TABLE ONLY user_blocks
3890 ADD CONSTRAINT user_blocks_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
3894 -- Name: user_preferences_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3897 ALTER TABLE ONLY user_preferences
3898 ADD CONSTRAINT user_preferences_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
3902 -- Name: user_roles_granter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3905 ALTER TABLE ONLY user_roles
3906 ADD CONSTRAINT user_roles_granter_id_fkey FOREIGN KEY (granter_id) REFERENCES users(id);
3910 -- Name: user_roles_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3913 ALTER TABLE ONLY user_roles
3914 ADD CONSTRAINT user_roles_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
3918 -- Name: user_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3921 ALTER TABLE ONLY user_tokens
3922 ADD CONSTRAINT user_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
3926 -- Name: way_nodes_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3929 ALTER TABLE ONLY way_nodes
3930 ADD CONSTRAINT way_nodes_id_fkey FOREIGN KEY (way_id, version) REFERENCES ways(way_id, version);
3934 -- Name: way_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3937 ALTER TABLE ONLY way_tags
3938 ADD CONSTRAINT way_tags_id_fkey FOREIGN KEY (way_id, version) REFERENCES ways(way_id, version);
3942 -- Name: ways_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3945 ALTER TABLE ONLY ways
3946 ADD CONSTRAINT ways_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
3950 -- PostgreSQL database dump complete
3953 INSERT INTO schema_migrations (version) VALUES ('1');
3955 INSERT INTO schema_migrations (version) VALUES ('10');
3957 INSERT INTO schema_migrations (version) VALUES ('11');
3959 INSERT INTO schema_migrations (version) VALUES ('12');
3961 INSERT INTO schema_migrations (version) VALUES ('13');
3963 INSERT INTO schema_migrations (version) VALUES ('14');
3965 INSERT INTO schema_migrations (version) VALUES ('15');
3967 INSERT INTO schema_migrations (version) VALUES ('16');
3969 INSERT INTO schema_migrations (version) VALUES ('17');
3971 INSERT INTO schema_migrations (version) VALUES ('18');
3973 INSERT INTO schema_migrations (version) VALUES ('19');
3975 INSERT INTO schema_migrations (version) VALUES ('2');
3977 INSERT INTO schema_migrations (version) VALUES ('20');
3979 INSERT INTO schema_migrations (version) VALUES ('20100513171259');
3981 INSERT INTO schema_migrations (version) VALUES ('20100516124737');
3983 INSERT INTO schema_migrations (version) VALUES ('20100910084426');
3985 INSERT INTO schema_migrations (version) VALUES ('20101114011429');
3987 INSERT INTO schema_migrations (version) VALUES ('20110322001319');
3989 INSERT INTO schema_migrations (version) VALUES ('20110925112722');
3991 INSERT INTO schema_migrations (version) VALUES ('20111116184519');
3993 INSERT INTO schema_migrations (version) VALUES ('20111212183945');
3995 INSERT INTO schema_migrations (version) VALUES ('20120123184321');
3997 INSERT INTO schema_migrations (version) VALUES ('20120208122334');
3999 INSERT INTO schema_migrations (version) VALUES ('20120208194454');
4001 INSERT INTO schema_migrations (version) VALUES ('20120219161649');
4003 INSERT INTO schema_migrations (version) VALUES ('21');
4005 INSERT INTO schema_migrations (version) VALUES ('22');
4007 INSERT INTO schema_migrations (version) VALUES ('23');
4009 INSERT INTO schema_migrations (version) VALUES ('24');
4011 INSERT INTO schema_migrations (version) VALUES ('25');
4013 INSERT INTO schema_migrations (version) VALUES ('26');
4015 INSERT INTO schema_migrations (version) VALUES ('27');
4017 INSERT INTO schema_migrations (version) VALUES ('28');
4019 INSERT INTO schema_migrations (version) VALUES ('29');
4021 INSERT INTO schema_migrations (version) VALUES ('3');
4023 INSERT INTO schema_migrations (version) VALUES ('30');
4025 INSERT INTO schema_migrations (version) VALUES ('31');
4027 INSERT INTO schema_migrations (version) VALUES ('32');
4029 INSERT INTO schema_migrations (version) VALUES ('33');
4031 INSERT INTO schema_migrations (version) VALUES ('34');
4033 INSERT INTO schema_migrations (version) VALUES ('35');
4035 INSERT INTO schema_migrations (version) VALUES ('36');
4037 INSERT INTO schema_migrations (version) VALUES ('37');
4039 INSERT INTO schema_migrations (version) VALUES ('38');
4041 INSERT INTO schema_migrations (version) VALUES ('39');
4043 INSERT INTO schema_migrations (version) VALUES ('4');
4045 INSERT INTO schema_migrations (version) VALUES ('40');
4047 INSERT INTO schema_migrations (version) VALUES ('41');
4049 INSERT INTO schema_migrations (version) VALUES ('42');
4051 INSERT INTO schema_migrations (version) VALUES ('43');
4053 INSERT INTO schema_migrations (version) VALUES ('44');
4055 INSERT INTO schema_migrations (version) VALUES ('45');
4057 INSERT INTO schema_migrations (version) VALUES ('46');
4059 INSERT INTO schema_migrations (version) VALUES ('47');
4061 INSERT INTO schema_migrations (version) VALUES ('48');
4063 INSERT INTO schema_migrations (version) VALUES ('49');
4065 INSERT INTO schema_migrations (version) VALUES ('5');
4067 INSERT INTO schema_migrations (version) VALUES ('50');
4069 INSERT INTO schema_migrations (version) VALUES ('51');
4071 INSERT INTO schema_migrations (version) VALUES ('52');
4073 INSERT INTO schema_migrations (version) VALUES ('6');
4075 INSERT INTO schema_migrations (version) VALUES ('7');
4077 INSERT INTO schema_migrations (version) VALUES ('8');
4079 INSERT INTO schema_migrations (version) VALUES ('9');