-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathECAES.sql
20159 lines (14641 loc) · 501 KB
/
ECAES.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--
-- PostgreSQL database dump
--
-- Started on 2009-12-03 20:31:22
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- TOC entry 3230 (class 1262 OID 16393)
-- Dependencies: 3229
-- Name: ECAES; Type: COMMENT; Schema: -; Owner: postgres
--
COMMENT ON DATABASE "ECAES" IS 'Base de datos del proyecto';
--
-- TOC entry 1229 (class 2612 OID 16396)
-- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: postgres
--
--CREATE PROCEDURAL LANGUAGE plpgsql;
ALTER PROCEDURAL LANGUAGE plpgsql OWNER TO postgres;
SET search_path = public, pg_catalog;
--
-- TOC entry 1062 (class 1247 OID 16399)
-- Dependencies: 6 2777
-- Name: breakpoint; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE breakpoint AS (
func oid,
linenumber integer,
targetname text
);
ALTER TYPE public.breakpoint OWNER TO postgres;
--
-- TOC entry 1065 (class 0 OID 0)
-- Name: chkpass; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE chkpass;
--
-- TOC entry 20 (class 1255 OID 16401)
-- Dependencies: 6 1065
-- Name: chkpass_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION chkpass_in(cstring) RETURNS chkpass
LANGUAGE c STRICT
AS '$libdir/chkpass', 'chkpass_in';
ALTER FUNCTION public.chkpass_in(cstring) OWNER TO postgres;
--
-- TOC entry 21 (class 1255 OID 16402)
-- Dependencies: 6 1065
-- Name: chkpass_out(chkpass); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION chkpass_out(chkpass) RETURNS cstring
LANGUAGE c STRICT
AS '$libdir/chkpass', 'chkpass_out';
ALTER FUNCTION public.chkpass_out(chkpass) OWNER TO postgres;
--
-- TOC entry 1064 (class 1247 OID 16400)
-- Dependencies: 21 20 6
-- Name: chkpass; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE chkpass (
INTERNALLENGTH = 16,
INPUT = chkpass_in,
OUTPUT = chkpass_out,
ALIGNMENT = int4,
STORAGE = plain
);
ALTER TYPE public.chkpass OWNER TO postgres;
--
-- TOC entry 3233 (class 0 OID 0)
-- Dependencies: 1064
-- Name: TYPE chkpass; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE chkpass IS 'password type with checks';
--
-- TOC entry 1068 (class 0 OID 0)
-- Name: cube; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE cube;
--
-- TOC entry 22 (class 1255 OID 16405)
-- Dependencies: 6 1068
-- Name: cube_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION cube_in(cstring) RETURNS cube
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/cube', 'cube_in';
ALTER FUNCTION public.cube_in(cstring) OWNER TO postgres;
--
-- TOC entry 23 (class 1255 OID 16406)
-- Dependencies: 6 1068
-- Name: cube_out(cube); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION cube_out(cube) RETURNS cstring
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/cube', 'cube_out';
ALTER FUNCTION public.cube_out(cube) OWNER TO postgres;
--
-- TOC entry 1067 (class 1247 OID 16404)
-- Dependencies: 6 23 22
-- Name: cube; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE cube (
INTERNALLENGTH = variable,
INPUT = cube_in,
OUTPUT = cube_out,
ALIGNMENT = double,
STORAGE = plain
);
ALTER TYPE public.cube OWNER TO postgres;
--
-- TOC entry 3234 (class 0 OID 0)
-- Dependencies: 1067
-- Name: TYPE cube; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE cube IS 'multi-dimensional cube ''(FLOAT-1, FLOAT-2, ..., FLOAT-N), (FLOAT-1, FLOAT-2, ..., FLOAT-N)''';
--
-- TOC entry 1070 (class 1247 OID 16410)
-- Dependencies: 6 2778
-- Name: dblink_pkey_results; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE dblink_pkey_results AS (
"position" integer,
colname text
);
ALTER TYPE public.dblink_pkey_results OWNER TO postgres;
--
-- TOC entry 1073 (class 0 OID 0)
-- Name: ean13; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ean13;
--
-- TOC entry 24 (class 1255 OID 16412)
-- Dependencies: 6 1073
-- Name: ean13_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION ean13_in(cstring) RETURNS ean13
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/isn', 'ean13_in';
ALTER FUNCTION public.ean13_in(cstring) OWNER TO postgres;
--
-- TOC entry 25 (class 1255 OID 16413)
-- Dependencies: 6 1073
-- Name: ean13_out(ean13); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION ean13_out(ean13) RETURNS cstring
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/isn', 'ean13_out';
ALTER FUNCTION public.ean13_out(ean13) OWNER TO postgres;
--
-- TOC entry 1072 (class 1247 OID 16411)
-- Dependencies: 25 6 24
-- Name: ean13; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ean13 (
INTERNALLENGTH = 8,
INPUT = ean13_in,
OUTPUT = public.ean13_out,
ALIGNMENT = double,
STORAGE = plain
);
ALTER TYPE public.ean13 OWNER TO postgres;
--
-- TOC entry 3235 (class 0 OID 0)
-- Dependencies: 1072
-- Name: TYPE ean13; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE ean13 IS 'International European Article Number (EAN13)';
--
-- TOC entry 26 (class 1255 OID 16415)
-- Dependencies: 6 1067
-- Name: cube_dim(cube); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION cube_dim(cube) RETURNS integer
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/cube', 'cube_dim';
ALTER FUNCTION public.cube_dim(cube) OWNER TO postgres;
--
-- TOC entry 27 (class 1255 OID 16416)
-- Dependencies: 6 1067 1067
-- Name: cube_distance(cube, cube); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION cube_distance(cube, cube) RETURNS double precision
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/cube', 'cube_distance';
ALTER FUNCTION public.cube_distance(cube, cube) OWNER TO postgres;
--
-- TOC entry 28 (class 1255 OID 16417)
-- Dependencies: 1067 6
-- Name: cube_is_point(cube); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION cube_is_point(cube) RETURNS boolean
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/cube', 'cube_is_point';
ALTER FUNCTION public.cube_is_point(cube) OWNER TO postgres;
--
-- TOC entry 29 (class 1255 OID 16418)
-- Dependencies: 6
-- Name: earth(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION earth() RETURNS double precision
LANGUAGE sql IMMUTABLE
AS $$SELECT '6378168'::float8$$;
ALTER FUNCTION public.earth() OWNER TO postgres;
--
-- TOC entry 1075 (class 1247 OID 16419)
-- Dependencies: 1076 1077 1078 6 1067 23
-- Name: earth; Type: DOMAIN; Schema: public; Owner: postgres
--
CREATE DOMAIN earth AS cube
CONSTRAINT not_3d CHECK ((cube_dim(VALUE) <= 3))
CONSTRAINT not_point CHECK (cube_is_point(VALUE))
CONSTRAINT on_surface CHECK ((abs(((cube_distance(VALUE, '(0)'::cube) / earth()) - (1)::double precision)) < (0.00000099999999999999995)::double precision));
ALTER DOMAIN public.earth OWNER TO postgres;
--
-- TOC entry 1079 (class 1247 OID 16425)
-- Dependencies: 6 2779
-- Name: frame; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE frame AS (
level integer,
targetname text,
func oid,
linenumber integer,
args text
);
ALTER TYPE public.frame OWNER TO postgres;
--
-- TOC entry 1082 (class 0 OID 0)
-- Name: gbtreekey16; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE gbtreekey16;
--
-- TOC entry 30 (class 1255 OID 16427)
-- Dependencies: 6 1082
-- Name: gbtreekey16_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION gbtreekey16_in(cstring) RETURNS gbtreekey16
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/btree_gist', 'gbtreekey_in';
ALTER FUNCTION public.gbtreekey16_in(cstring) OWNER TO postgres;
--
-- TOC entry 31 (class 1255 OID 16428)
-- Dependencies: 6 1082
-- Name: gbtreekey16_out(gbtreekey16); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION gbtreekey16_out(gbtreekey16) RETURNS cstring
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/btree_gist', 'gbtreekey_out';
ALTER FUNCTION public.gbtreekey16_out(gbtreekey16) OWNER TO postgres;
--
-- TOC entry 1081 (class 1247 OID 16426)
-- Dependencies: 6 30 31
-- Name: gbtreekey16; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE gbtreekey16 (
INTERNALLENGTH = 16,
INPUT = gbtreekey16_in,
OUTPUT = gbtreekey16_out,
ALIGNMENT = int4,
STORAGE = plain
);
ALTER TYPE public.gbtreekey16 OWNER TO postgres;
--
-- TOC entry 1085 (class 0 OID 0)
-- Name: gbtreekey32; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE gbtreekey32;
--
-- TOC entry 32 (class 1255 OID 16431)
-- Dependencies: 6 1085
-- Name: gbtreekey32_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION gbtreekey32_in(cstring) RETURNS gbtreekey32
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/btree_gist', 'gbtreekey_in';
ALTER FUNCTION public.gbtreekey32_in(cstring) OWNER TO postgres;
--
-- TOC entry 33 (class 1255 OID 16432)
-- Dependencies: 6 1085
-- Name: gbtreekey32_out(gbtreekey32); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION gbtreekey32_out(gbtreekey32) RETURNS cstring
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/btree_gist', 'gbtreekey_out';
ALTER FUNCTION public.gbtreekey32_out(gbtreekey32) OWNER TO postgres;
--
-- TOC entry 1084 (class 1247 OID 16430)
-- Dependencies: 32 33 6
-- Name: gbtreekey32; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE gbtreekey32 (
INTERNALLENGTH = 32,
INPUT = gbtreekey32_in,
OUTPUT = gbtreekey32_out,
ALIGNMENT = int4,
STORAGE = plain
);
ALTER TYPE public.gbtreekey32 OWNER TO postgres;
--
-- TOC entry 1088 (class 0 OID 0)
-- Name: gbtreekey4; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE gbtreekey4;
--
-- TOC entry 34 (class 1255 OID 16435)
-- Dependencies: 6 1088
-- Name: gbtreekey4_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION gbtreekey4_in(cstring) RETURNS gbtreekey4
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/btree_gist', 'gbtreekey_in';
ALTER FUNCTION public.gbtreekey4_in(cstring) OWNER TO postgres;
--
-- TOC entry 35 (class 1255 OID 16436)
-- Dependencies: 6 1088
-- Name: gbtreekey4_out(gbtreekey4); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION gbtreekey4_out(gbtreekey4) RETURNS cstring
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/btree_gist', 'gbtreekey_out';
ALTER FUNCTION public.gbtreekey4_out(gbtreekey4) OWNER TO postgres;
--
-- TOC entry 1087 (class 1247 OID 16434)
-- Dependencies: 6 34 35
-- Name: gbtreekey4; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE gbtreekey4 (
INTERNALLENGTH = 4,
INPUT = gbtreekey4_in,
OUTPUT = gbtreekey4_out,
ALIGNMENT = int4,
STORAGE = plain
);
ALTER TYPE public.gbtreekey4 OWNER TO postgres;
--
-- TOC entry 1091 (class 0 OID 0)
-- Name: gbtreekey8; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE gbtreekey8;
--
-- TOC entry 36 (class 1255 OID 16439)
-- Dependencies: 6 1091
-- Name: gbtreekey8_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION gbtreekey8_in(cstring) RETURNS gbtreekey8
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/btree_gist', 'gbtreekey_in';
ALTER FUNCTION public.gbtreekey8_in(cstring) OWNER TO postgres;
--
-- TOC entry 37 (class 1255 OID 16440)
-- Dependencies: 6 1091
-- Name: gbtreekey8_out(gbtreekey8); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION gbtreekey8_out(gbtreekey8) RETURNS cstring
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/btree_gist', 'gbtreekey_out';
ALTER FUNCTION public.gbtreekey8_out(gbtreekey8) OWNER TO postgres;
--
-- TOC entry 1090 (class 1247 OID 16438)
-- Dependencies: 6 36 37
-- Name: gbtreekey8; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE gbtreekey8 (
INTERNALLENGTH = 8,
INPUT = gbtreekey8_in,
OUTPUT = gbtreekey8_out,
ALIGNMENT = int4,
STORAGE = plain
);
ALTER TYPE public.gbtreekey8 OWNER TO postgres;
--
-- TOC entry 1094 (class 0 OID 0)
-- Name: gbtreekey_var; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE gbtreekey_var;
--
-- TOC entry 38 (class 1255 OID 16443)
-- Dependencies: 6 1094
-- Name: gbtreekey_var_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION gbtreekey_var_in(cstring) RETURNS gbtreekey_var
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/btree_gist', 'gbtreekey_in';
ALTER FUNCTION public.gbtreekey_var_in(cstring) OWNER TO postgres;
--
-- TOC entry 39 (class 1255 OID 16444)
-- Dependencies: 6 1094
-- Name: gbtreekey_var_out(gbtreekey_var); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION gbtreekey_var_out(gbtreekey_var) RETURNS cstring
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/btree_gist', 'gbtreekey_out';
ALTER FUNCTION public.gbtreekey_var_out(gbtreekey_var) OWNER TO postgres;
--
-- TOC entry 1093 (class 1247 OID 16442)
-- Dependencies: 6 38 39
-- Name: gbtreekey_var; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE gbtreekey_var (
INTERNALLENGTH = variable,
INPUT = gbtreekey_var_in,
OUTPUT = gbtreekey_var_out,
ALIGNMENT = int4,
STORAGE = extended
);
ALTER TYPE public.gbtreekey_var OWNER TO postgres;
--
-- TOC entry 1097 (class 0 OID 0)
-- Name: ghstore; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ghstore;
--
-- TOC entry 40 (class 1255 OID 16447)
-- Dependencies: 6 1097
-- Name: ghstore_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION ghstore_in(cstring) RETURNS ghstore
LANGUAGE c STRICT
AS '$libdir/hstore', 'ghstore_in';
ALTER FUNCTION public.ghstore_in(cstring) OWNER TO postgres;
--
-- TOC entry 41 (class 1255 OID 16448)
-- Dependencies: 6 1097
-- Name: ghstore_out(ghstore); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION ghstore_out(ghstore) RETURNS cstring
LANGUAGE c STRICT
AS '$libdir/hstore', 'ghstore_out';
ALTER FUNCTION public.ghstore_out(ghstore) OWNER TO postgres;
--
-- TOC entry 1096 (class 1247 OID 16446)
-- Dependencies: 6 40 41
-- Name: ghstore; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ghstore (
INTERNALLENGTH = variable,
INPUT = ghstore_in,
OUTPUT = ghstore_out,
ALIGNMENT = int4,
STORAGE = plain
);
ALTER TYPE public.ghstore OWNER TO postgres;
--
-- TOC entry 1100 (class 0 OID 0)
-- Name: gtrgm; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE gtrgm;
--
-- TOC entry 42 (class 1255 OID 16451)
-- Dependencies: 6 1100
-- Name: gtrgm_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION gtrgm_in(cstring) RETURNS gtrgm
LANGUAGE c STRICT
AS '$libdir/pg_trgm', 'gtrgm_in';
ALTER FUNCTION public.gtrgm_in(cstring) OWNER TO postgres;
--
-- TOC entry 8 (class 1255 OID 16452)
-- Dependencies: 6 1100
-- Name: gtrgm_out(gtrgm); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION gtrgm_out(gtrgm) RETURNS cstring
LANGUAGE c STRICT
AS '$libdir/pg_trgm', 'gtrgm_out';
ALTER FUNCTION public.gtrgm_out(gtrgm) OWNER TO postgres;
--
-- TOC entry 1099 (class 1247 OID 16450)
-- Dependencies: 6 8 42
-- Name: gtrgm; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE gtrgm (
INTERNALLENGTH = variable,
INPUT = gtrgm_in,
OUTPUT = gtrgm_out,
ALIGNMENT = int4,
STORAGE = plain
);
ALTER TYPE public.gtrgm OWNER TO postgres;
--
-- TOC entry 1103 (class 0 OID 0)
-- Name: hstore; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE hstore;
--
-- TOC entry 43 (class 1255 OID 16455)
-- Dependencies: 6 1103
-- Name: hstore_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION hstore_in(cstring) RETURNS hstore
LANGUAGE c STRICT
AS '$libdir/hstore', 'hstore_in';
ALTER FUNCTION public.hstore_in(cstring) OWNER TO postgres;
--
-- TOC entry 44 (class 1255 OID 16456)
-- Dependencies: 6 1103
-- Name: hstore_out(hstore); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION hstore_out(hstore) RETURNS cstring
LANGUAGE c STRICT
AS '$libdir/hstore', 'hstore_out';
ALTER FUNCTION public.hstore_out(hstore) OWNER TO postgres;
--
-- TOC entry 1102 (class 1247 OID 16454)
-- Dependencies: 43 44 6
-- Name: hstore; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE hstore (
INTERNALLENGTH = variable,
INPUT = hstore_in,
OUTPUT = hstore_out,
ALIGNMENT = int4,
STORAGE = extended
);
ALTER TYPE public.hstore OWNER TO postgres;
--
-- TOC entry 1106 (class 0 OID 0)
-- Name: intbig_gkey; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE intbig_gkey;
--
-- TOC entry 45 (class 1255 OID 16459)
-- Dependencies: 6 1106
-- Name: _intbig_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION _intbig_in(cstring) RETURNS intbig_gkey
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/_int', '_intbig_in';
ALTER FUNCTION public._intbig_in(cstring) OWNER TO postgres;
--
-- TOC entry 46 (class 1255 OID 16460)
-- Dependencies: 6 1106
-- Name: _intbig_out(intbig_gkey); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION _intbig_out(intbig_gkey) RETURNS cstring
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/_int', '_intbig_out';
ALTER FUNCTION public._intbig_out(intbig_gkey) OWNER TO postgres;
--
-- TOC entry 1105 (class 1247 OID 16458)
-- Dependencies: 45 46 6
-- Name: intbig_gkey; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE intbig_gkey (
INTERNALLENGTH = variable,
INPUT = _intbig_in,
OUTPUT = _intbig_out,
ALIGNMENT = int4,
STORAGE = plain
);
ALTER TYPE public.intbig_gkey OWNER TO postgres;
--
-- TOC entry 1109 (class 0 OID 0)
-- Name: isbn; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE isbn;
--
-- TOC entry 47 (class 1255 OID 16463)
-- Dependencies: 6 1109
-- Name: isbn_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION isbn_in(cstring) RETURNS isbn
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/isn', 'isbn_in';
ALTER FUNCTION public.isbn_in(cstring) OWNER TO postgres;
--
-- TOC entry 48 (class 1255 OID 16464)
-- Dependencies: 6 1109
-- Name: isn_out(isbn); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION isn_out(isbn) RETURNS cstring
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/isn', 'isn_out';
ALTER FUNCTION public.isn_out(isbn) OWNER TO postgres;
--
-- TOC entry 1108 (class 1247 OID 16462)
-- Dependencies: 6 47 48
-- Name: isbn; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE isbn (
INTERNALLENGTH = 8,
INPUT = isbn_in,
OUTPUT = public.isn_out,
ALIGNMENT = double,
STORAGE = plain
);
ALTER TYPE public.isbn OWNER TO postgres;
--
-- TOC entry 3236 (class 0 OID 0)
-- Dependencies: 1108
-- Name: TYPE isbn; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE isbn IS 'International Standard Book Number (ISBN)';
--
-- TOC entry 1112 (class 0 OID 0)
-- Name: isbn13; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE isbn13;
--
-- TOC entry 49 (class 1255 OID 16467)
-- Dependencies: 6 1112
-- Name: ean13_out(isbn13); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION ean13_out(isbn13) RETURNS cstring
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/isn', 'ean13_out';
ALTER FUNCTION public.ean13_out(isbn13) OWNER TO postgres;
--
-- TOC entry 50 (class 1255 OID 16468)
-- Dependencies: 6 1112
-- Name: isbn13_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION isbn13_in(cstring) RETURNS isbn13
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/isn', 'isbn_in';
ALTER FUNCTION public.isbn13_in(cstring) OWNER TO postgres;
--
-- TOC entry 1111 (class 1247 OID 16466)
-- Dependencies: 49 50 6
-- Name: isbn13; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE isbn13 (
INTERNALLENGTH = 8,
INPUT = isbn13_in,
OUTPUT = public.ean13_out,
ALIGNMENT = double,
STORAGE = plain
);
ALTER TYPE public.isbn13 OWNER TO postgres;
--
-- TOC entry 3237 (class 0 OID 0)
-- Dependencies: 1111
-- Name: TYPE isbn13; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE isbn13 IS 'International Standard Book Number 13 (ISBN13)';
--
-- TOC entry 1115 (class 0 OID 0)
-- Name: ismn; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ismn;
--
-- TOC entry 51 (class 1255 OID 16471)
-- Dependencies: 6 1115
-- Name: ismn_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION ismn_in(cstring) RETURNS ismn
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/isn', 'ismn_in';
ALTER FUNCTION public.ismn_in(cstring) OWNER TO postgres;
--
-- TOC entry 52 (class 1255 OID 16472)
-- Dependencies: 6 1115
-- Name: isn_out(ismn); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION isn_out(ismn) RETURNS cstring
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/isn', 'isn_out';
ALTER FUNCTION public.isn_out(ismn) OWNER TO postgres;
--
-- TOC entry 1114 (class 1247 OID 16470)
-- Dependencies: 52 51 6
-- Name: ismn; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ismn (
INTERNALLENGTH = 8,
INPUT = ismn_in,
OUTPUT = public.isn_out,
ALIGNMENT = double,
STORAGE = plain
);
ALTER TYPE public.ismn OWNER TO postgres;
--
-- TOC entry 3238 (class 0 OID 0)
-- Dependencies: 1114
-- Name: TYPE ismn; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE ismn IS 'International Standard Music Number (ISMN)';
--
-- TOC entry 1118 (class 0 OID 0)
-- Name: ismn13; Type: SHELL TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ismn13;
--
-- TOC entry 53 (class 1255 OID 16475)
-- Dependencies: 6 1118
-- Name: ean13_out(ismn13); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION ean13_out(ismn13) RETURNS cstring
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/isn', 'ean13_out';
ALTER FUNCTION public.ean13_out(ismn13) OWNER TO postgres;
--
-- TOC entry 54 (class 1255 OID 16476)
-- Dependencies: 6 1118
-- Name: ismn13_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION ismn13_in(cstring) RETURNS ismn13
LANGUAGE c IMMUTABLE STRICT
AS '$libdir/isn', 'ismn_in';
ALTER FUNCTION public.ismn13_in(cstring) OWNER TO postgres;
--