📄 pg_amop.h
字号:
/*------------------------------------------------------------------------- * * pg_amop.h * definition of the system "amop" relation (pg_amop) * along with the relation's initial contents. * * The amop table identifies the operators associated with each index opclass. * * The primary key for this table is <amopclaid, amopsubtype, amopstrategy>. * amopsubtype is equal to zero for an opclass's "default" operators * (which normally are those that accept the opclass's opcintype on both * left and right sides). Some index AMs allow nondefault operators to * exist for a single strategy --- for example, in the btree AM nondefault * operators can have right-hand input data types different from opcintype, * and their amopsubtype is equal to the right-hand input data type. * * We also keep a unique index on <amopclaid, amopopr>, so that we can * use a syscache to quickly answer questions of the form "is this operator * in this opclass?". This implies that the same operator cannot be listed * for multiple subtypes or strategy numbers of a single opclass. * * * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * $PostgreSQL: pgsql/src/include/catalog/pg_amop.h,v 1.66 2005/10/15 02:49:42 momjian Exp $ * * NOTES * the genbki.sh script reads this file and generates .bki * information from the DATA() statements. * *------------------------------------------------------------------------- */#ifndef PG_AMOP_H#define PG_AMOP_H/* ---------------- * postgres.h contains the system type definitions and the * CATALOG(), BKI_BOOTSTRAP and DATA() sugar words so this file * can be read by both genbki.sh and the C compiler. * ---------------- *//* ---------------- * pg_amop definition. cpp turns this into * typedef struct FormData_pg_amop * ---------------- */#define AccessMethodOperatorRelationId 2602CATALOG(pg_amop,2602) BKI_WITHOUT_OIDS{ Oid amopclaid; /* the index opclass this entry is for */ Oid amopsubtype; /* operator subtype, or zero if default */ int2 amopstrategy; /* operator strategy number */ bool amopreqcheck; /* index hit must be rechecked */ Oid amopopr; /* the operator's pg_operator OID */} FormData_pg_amop;/* ---------------- * Form_pg_amop corresponds to a pointer to a tuple with * the format of pg_amop relation. * ---------------- */typedef FormData_pg_amop *Form_pg_amop;/* ---------------- * compiler constants for pg_amop * ---------------- */#define Natts_pg_amop 5#define Anum_pg_amop_amopclaid 1#define Anum_pg_amop_amopsubtype 2#define Anum_pg_amop_amopstrategy 3#define Anum_pg_amop_amopreqcheck 4#define Anum_pg_amop_amopopr 5/* ---------------- * initial contents of pg_amop * ---------------- *//* * rtree box_ops */DATA(insert ( 425 0 1 f 493 ));DATA(insert ( 425 0 2 f 494 ));DATA(insert ( 425 0 3 f 500 ));DATA(insert ( 425 0 4 f 495 ));DATA(insert ( 425 0 5 f 496 ));DATA(insert ( 425 0 6 f 499 ));DATA(insert ( 425 0 7 f 498 ));DATA(insert ( 425 0 8 f 497 ));DATA(insert ( 425 0 9 f 2571 ));DATA(insert ( 425 0 10 f 2570 ));DATA(insert ( 425 0 11 f 2573 ));DATA(insert ( 425 0 12 f 2572 ));/* * rtree poly_ops (supports polygons) */DATA(insert ( 1993 0 1 f 485 ));DATA(insert ( 1993 0 2 f 486 ));DATA(insert ( 1993 0 3 f 492 ));DATA(insert ( 1993 0 4 f 487 ));DATA(insert ( 1993 0 5 f 488 ));DATA(insert ( 1993 0 6 f 491 ));DATA(insert ( 1993 0 7 f 490 ));DATA(insert ( 1993 0 8 f 489 ));DATA(insert ( 1993 0 9 f 2575 ));DATA(insert ( 1993 0 10 f 2574 ));DATA(insert ( 1993 0 11 f 2577 ));DATA(insert ( 1993 0 12 f 2576 ));/* * btree int2_ops */DATA(insert ( 1976 0 1 f 95 ));DATA(insert ( 1976 0 2 f 522 ));DATA(insert ( 1976 0 3 f 94 ));DATA(insert ( 1976 0 4 f 524 ));DATA(insert ( 1976 0 5 f 520 ));/* crosstype operators int24 */DATA(insert ( 1976 23 1 f 534 ));DATA(insert ( 1976 23 2 f 540 ));DATA(insert ( 1976 23 3 f 532 ));DATA(insert ( 1976 23 4 f 542 ));DATA(insert ( 1976 23 5 f 536 ));/* crosstype operators int28 */DATA(insert ( 1976 20 1 f 1864 ));DATA(insert ( 1976 20 2 f 1866 ));DATA(insert ( 1976 20 3 f 1862 ));DATA(insert ( 1976 20 4 f 1867 ));DATA(insert ( 1976 20 5 f 1865 ));/* * btree int4_ops */DATA(insert ( 1978 0 1 f 97 ));DATA(insert ( 1978 0 2 f 523 ));DATA(insert ( 1978 0 3 f 96 ));DATA(insert ( 1978 0 4 f 525 ));DATA(insert ( 1978 0 5 f 521 ));/* crosstype operators int42 */DATA(insert ( 1978 21 1 f 535 ));DATA(insert ( 1978 21 2 f 541 ));DATA(insert ( 1978 21 3 f 533 ));DATA(insert ( 1978 21 4 f 543 ));DATA(insert ( 1978 21 5 f 537 ));/* crosstype operators int48 */DATA(insert ( 1978 20 1 f 37 ));DATA(insert ( 1978 20 2 f 80 ));DATA(insert ( 1978 20 3 f 15 ));DATA(insert ( 1978 20 4 f 82 ));DATA(insert ( 1978 20 5 f 76 ));/* * btree int8_ops */DATA(insert ( 1980 0 1 f 412 ));DATA(insert ( 1980 0 2 f 414 ));DATA(insert ( 1980 0 3 f 410 ));DATA(insert ( 1980 0 4 f 415 ));DATA(insert ( 1980 0 5 f 413 ));/* crosstype operators int82 */DATA(insert ( 1980 21 1 f 1870 ));DATA(insert ( 1980 21 2 f 1872 ));DATA(insert ( 1980 21 3 f 1868 ));DATA(insert ( 1980 21 4 f 1873 ));DATA(insert ( 1980 21 5 f 1871 ));/* crosstype operators int84 */DATA(insert ( 1980 23 1 f 418 ));DATA(insert ( 1980 23 2 f 420 ));DATA(insert ( 1980 23 3 f 416 ));DATA(insert ( 1980 23 4 f 430 ));DATA(insert ( 1980 23 5 f 419 ));/* * btree oid_ops */DATA(insert ( 1989 0 1 f 609 ));DATA(insert ( 1989 0 2 f 611 ));DATA(insert ( 1989 0 3 f 607 ));DATA(insert ( 1989 0 4 f 612 ));DATA(insert ( 1989 0 5 f 610 ));/* * btree oidvector_ops */DATA(insert ( 1991 0 1 f 645 ));DATA(insert ( 1991 0 2 f 647 ));DATA(insert ( 1991 0 3 f 649 ));DATA(insert ( 1991 0 4 f 648 ));DATA(insert ( 1991 0 5 f 646 ));/* * btree float4_ops */DATA(insert ( 1970 0 1 f 622 ));DATA(insert ( 1970 0 2 f 624 ));DATA(insert ( 1970 0 3 f 620 ));DATA(insert ( 1970 0 4 f 625 ));DATA(insert ( 1970 0 5 f 623 ));/* crosstype operators float48 */DATA(insert ( 1970 701 1 f 1122 ));DATA(insert ( 1970 701 2 f 1124 ));DATA(insert ( 1970 701 3 f 1120 ));DATA(insert ( 1970 701 4 f 1125 ));DATA(insert ( 1970 701 5 f 1123 ));/* * btree float8_ops */DATA(insert ( 1972 0 1 f 672 ));DATA(insert ( 1972 0 2 f 673 ));DATA(insert ( 1972 0 3 f 670 ));DATA(insert ( 1972 0 4 f 675 ));DATA(insert ( 1972 0 5 f 674 ));/* crosstype operators float84 */DATA(insert ( 1972 700 1 f 1132 ));DATA(insert ( 1972 700 2 f 1134 ));DATA(insert ( 1972 700 3 f 1130 ));DATA(insert ( 1972 700 4 f 1135 ));DATA(insert ( 1972 700 5 f 1133 ));/* * btree char_ops */DATA(insert ( 429 0 1 f 631 ));DATA(insert ( 429 0 2 f 632 ));DATA(insert ( 429 0 3 f 92 ));DATA(insert ( 429 0 4 f 634 ));DATA(insert ( 429 0 5 f 633 ));/* * btree name_ops */DATA(insert ( 1986 0 1 f 660 ));DATA(insert ( 1986 0 2 f 661 ));DATA(insert ( 1986 0 3 f 93 ));DATA(insert ( 1986 0 4 f 663 ));DATA(insert ( 1986 0 5 f 662 ));/* * btree text_ops */DATA(insert ( 1994 0 1 f 664 ));DATA(insert ( 1994 0 2 f 665 ));DATA(insert ( 1994 0 3 f 98 ));DATA(insert ( 1994 0 4 f 667 ));DATA(insert ( 1994 0 5 f 666 ));/* * btree bpchar_ops */DATA(insert ( 426 0 1 f 1058 ));DATA(insert ( 426 0 2 f 1059 ));DATA(insert ( 426 0 3 f 1054 ));DATA(insert ( 426 0 4 f 1061 ));DATA(insert ( 426 0 5 f 1060 ));/* * btree varchar_ops (same operators as text_ops) */DATA(insert ( 2003 0 1 f 664 ));DATA(insert ( 2003 0 2 f 665 ));DATA(insert ( 2003 0 3 f 98 ));DATA(insert ( 2003 0 4 f 667 ));DATA(insert ( 2003 0 5 f 666 ));/* * btree bytea_ops */DATA(insert ( 428 0 1 f 1957 ));DATA(insert ( 428 0 2 f 1958 ));DATA(insert ( 428 0 3 f 1955 ));DATA(insert ( 428 0 4 f 1960 ));DATA(insert ( 428 0 5 f 1959 ));/* * btree abstime_ops */DATA(insert ( 421 0 1 f 562 ));DATA(insert ( 421 0 2 f 564 ));DATA(insert ( 421 0 3 f 560 ));DATA(insert ( 421 0 4 f 565 ));DATA(insert ( 421 0 5 f 563 ));/* * btree date_ops */DATA(insert ( 434 0 1 f 1095 ));DATA(insert ( 434 0 2 f 1096 ));DATA(insert ( 434 0 3 f 1093 ));DATA(insert ( 434 0 4 f 1098 ));DATA(insert ( 434 0 5 f 1097 ));/* crosstype operators vs timestamp */DATA(insert ( 434 1114 1 f 2345 ));DATA(insert ( 434 1114 2 f 2346 ));DATA(insert ( 434 1114 3 f 2347 ));DATA(insert ( 434 1114 4 f 2348 ));DATA(insert ( 434 1114 5 f 2349 ));/* crosstype operators vs timestamptz */DATA(insert ( 434 1184 1 f 2358 ));DATA(insert ( 434 1184 2 f 2359 ));DATA(insert ( 434 1184 3 f 2360 ));DATA(insert ( 434 1184 4 f 2361 ));DATA(insert ( 434 1184 5 f 2362 ));/* * btree time_ops */DATA(insert ( 1996 0 1 f 1110 ));DATA(insert ( 1996 0 2 f 1111 ));DATA(insert ( 1996 0 3 f 1108 ));DATA(insert ( 1996 0 4 f 1113 ));DATA(insert ( 1996 0 5 f 1112 ));/*
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -