📄 pg_proc.h
字号:
/*------------------------------------------------------------------------- * * pg_proc.h * definition of the system "procedure" relation (pg_proc) * along with the relation's initial contents. * * 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_proc.h,v 1.387 2005/10/15 02:49:42 momjian Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki * information from the DATA() statements. utils/Gen_fmgrtab.sh * generates fmgroids.h and fmgrtab.c the same way. * * XXX do NOT break up DATA() statements into multiple lines! * the scripts are not as smart as you might think... * XXX (eg. #if 0 #endif won't do what you think) * *------------------------------------------------------------------------- */#ifndef PG_PROC_H#define PG_PROC_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_proc definition. cpp turns this into * typedef struct FormData_pg_proc * ---------------- */#define ProcedureRelationId 1255CATALOG(pg_proc,1255) BKI_BOOTSTRAP{ NameData proname; /* procedure name */ Oid pronamespace; /* OID of namespace containing this proc */ Oid proowner; /* procedure owner */ Oid prolang; /* OID of pg_language entry */ bool proisagg; /* is it an aggregate? */ bool prosecdef; /* security definer */ bool proisstrict; /* strict with respect to NULLs? */ bool proretset; /* returns a set? */ char provolatile; /* see PROVOLATILE_ categories below */ int2 pronargs; /* number of arguments */ Oid prorettype; /* OID of result type */ /* VARIABLE LENGTH FIELDS: */ oidvector proargtypes; /* parameter types (excludes OUT params) */ Oid proallargtypes[1]; /* all param types (NULL if IN only) */ char proargmodes[1]; /* parameter modes (NULL if IN only) */ text proargnames[1]; /* parameter names (NULL if no names) */ text prosrc; /* procedure source text */ bytea probin; /* secondary procedure definition field */ aclitem proacl[1]; /* access permissions */} FormData_pg_proc;/* ---------------- * Form_pg_proc corresponds to a pointer to a tuple with * the format of pg_proc relation. * ---------------- */typedef FormData_pg_proc *Form_pg_proc;/* ---------------- * compiler constants for pg_proc * ---------------- */#define Natts_pg_proc 18#define Anum_pg_proc_proname 1#define Anum_pg_proc_pronamespace 2#define Anum_pg_proc_proowner 3#define Anum_pg_proc_prolang 4#define Anum_pg_proc_proisagg 5#define Anum_pg_proc_prosecdef 6#define Anum_pg_proc_proisstrict 7#define Anum_pg_proc_proretset 8#define Anum_pg_proc_provolatile 9#define Anum_pg_proc_pronargs 10#define Anum_pg_proc_prorettype 11#define Anum_pg_proc_proargtypes 12#define Anum_pg_proc_proallargtypes 13#define Anum_pg_proc_proargmodes 14#define Anum_pg_proc_proargnames 15#define Anum_pg_proc_prosrc 16#define Anum_pg_proc_probin 17#define Anum_pg_proc_proacl 18/* ---------------- * initial contents of pg_proc * ---------------- *//* keep the following ordered by OID so that later changes can be made easier *//* OIDS 1 - 99 */DATA(insert OID = 1242 ( boolin PGNSP PGUID 12 f f t f i 1 16 "2275" _null_ _null_ _null_ boolin - _null_ ));DESCR("I/O");DATA(insert OID = 1243 ( boolout PGNSP PGUID 12 f f t f i 1 2275 "16" _null_ _null_ _null_ boolout - _null_ ));DESCR("I/O");DATA(insert OID = 1244 ( byteain PGNSP PGUID 12 f f t f i 1 17 "2275" _null_ _null_ _null_ byteain - _null_ ));DESCR("I/O");DATA(insert OID = 31 ( byteaout PGNSP PGUID 12 f f t f i 1 2275 "17" _null_ _null_ _null_ byteaout - _null_ ));DESCR("I/O");DATA(insert OID = 1245 ( charin PGNSP PGUID 12 f f t f i 1 18 "2275" _null_ _null_ _null_ charin - _null_ ));DESCR("I/O");DATA(insert OID = 33 ( charout PGNSP PGUID 12 f f t f i 1 2275 "18" _null_ _null_ _null_ charout - _null_ ));DESCR("I/O");DATA(insert OID = 34 ( namein PGNSP PGUID 12 f f t f i 1 19 "2275" _null_ _null_ _null_ namein - _null_ ));DESCR("I/O");DATA(insert OID = 35 ( nameout PGNSP PGUID 12 f f t f i 1 2275 "19" _null_ _null_ _null_ nameout - _null_ ));DESCR("I/O");DATA(insert OID = 38 ( int2in PGNSP PGUID 12 f f t f i 1 21 "2275" _null_ _null_ _null_ int2in - _null_ ));DESCR("I/O");DATA(insert OID = 39 ( int2out PGNSP PGUID 12 f f t f i 1 2275 "21" _null_ _null_ _null_ int2out - _null_ ));DESCR("I/O");DATA(insert OID = 40 ( int2vectorin PGNSP PGUID 12 f f t f i 1 22 "2275" _null_ _null_ _null_ int2vectorin - _null_ ));DESCR("I/O");DATA(insert OID = 41 ( int2vectorout PGNSP PGUID 12 f f t f i 1 2275 "22" _null_ _null_ _null_ int2vectorout - _null_ ));DESCR("I/O");DATA(insert OID = 42 ( int4in PGNSP PGUID 12 f f t f i 1 23 "2275" _null_ _null_ _null_ int4in - _null_ ));DESCR("I/O");DATA(insert OID = 43 ( int4out PGNSP PGUID 12 f f t f i 1 2275 "23" _null_ _null_ _null_ int4out - _null_ ));DESCR("I/O");DATA(insert OID = 44 ( regprocin PGNSP PGUID 12 f f t f s 1 24 "2275" _null_ _null_ _null_ regprocin - _null_ ));DESCR("I/O");DATA(insert OID = 45 ( regprocout PGNSP PGUID 12 f f t f s 1 2275 "24" _null_ _null_ _null_ regprocout - _null_ ));DESCR("I/O");DATA(insert OID = 46 ( textin PGNSP PGUID 12 f f t f i 1 25 "2275" _null_ _null_ _null_ textin - _null_ ));DESCR("I/O");DATA(insert OID = 47 ( textout PGNSP PGUID 12 f f t f i 1 2275 "25" _null_ _null_ _null_ textout - _null_ ));DESCR("I/O");DATA(insert OID = 48 ( tidin PGNSP PGUID 12 f f t f i 1 27 "2275" _null_ _null_ _null_ tidin - _null_ ));DESCR("I/O");DATA(insert OID = 49 ( tidout PGNSP PGUID 12 f f t f i 1 2275 "27" _null_ _null_ _null_ tidout - _null_ ));DESCR("I/O");DATA(insert OID = 50 ( xidin PGNSP PGUID 12 f f t f i 1 28 "2275" _null_ _null_ _null_ xidin - _null_ ));DESCR("I/O");DATA(insert OID = 51 ( xidout PGNSP PGUID 12 f f t f i 1 2275 "28" _null_ _null_ _null_ xidout - _null_ ));DESCR("I/O");DATA(insert OID = 52 ( cidin PGNSP PGUID 12 f f t f i 1 29 "2275" _null_ _null_ _null_ cidin - _null_ ));DESCR("I/O");DATA(insert OID = 53 ( cidout PGNSP PGUID 12 f f t f i 1 2275 "29" _null_ _null_ _null_ cidout - _null_ ));DESCR("I/O");DATA(insert OID = 54 ( oidvectorin PGNSP PGUID 12 f f t f i 1 30 "2275" _null_ _null_ _null_ oidvectorin - _null_ ));DESCR("I/O");DATA(insert OID = 55 ( oidvectorout PGNSP PGUID 12 f f t f i 1 2275 "30" _null_ _null_ _null_ oidvectorout - _null_ ));DESCR("I/O");DATA(insert OID = 56 ( boollt PGNSP PGUID 12 f f t f i 2 16 "16 16" _null_ _null_ _null_ boollt - _null_ ));DESCR("less-than");DATA(insert OID = 57 ( boolgt PGNSP PGUID 12 f f t f i 2 16 "16 16" _null_ _null_ _null_ boolgt - _null_ ));DESCR("greater-than");DATA(insert OID = 60 ( booleq PGNSP PGUID 12 f f t f i 2 16 "16 16" _null_ _null_ _null_ booleq - _null_ ));DESCR("equal");DATA(insert OID = 61 ( chareq PGNSP PGUID 12 f f t f i 2 16 "18 18" _null_ _null_ _null_ chareq - _null_ ));DESCR("equal");DATA(insert OID = 62 ( nameeq PGNSP PGUID 12 f f t f i 2 16 "19 19" _null_ _null_ _null_ nameeq - _null_ ));DESCR("equal");DATA(insert OID = 63 ( int2eq PGNSP PGUID 12 f f t f i 2 16 "21 21" _null_ _null_ _null_ int2eq - _null_ ));DESCR("equal");DATA(insert OID = 64 ( int2lt PGNSP PGUID 12 f f t f i 2 16 "21 21" _null_ _null_ _null_ int2lt - _null_ ));DESCR("less-than");DATA(insert OID = 65 ( int4eq PGNSP PGUID 12 f f t f i 2 16 "23 23" _null_ _null_ _null_ int4eq - _null_ ));DESCR("equal");DATA(insert OID = 66 ( int4lt PGNSP PGUID 12 f f t f i 2 16 "23 23" _null_ _null_ _null_ int4lt - _null_ ));DESCR("less-than");DATA(insert OID = 67 ( texteq PGNSP PGUID 12 f f t f i 2 16 "25 25" _null_ _null_ _null_ texteq - _null_ ));DESCR("equal");DATA(insert OID = 68 ( xideq PGNSP PGUID 12 f f t f i 2 16 "28 28" _null_ _null_ _null_ xideq - _null_ ));DESCR("equal");DATA(insert OID = 69 ( cideq PGNSP PGUID 12 f f t f i 2 16 "29 29" _null_ _null_ _null_ cideq - _null_ ));DESCR("equal");DATA(insert OID = 70 ( charne PGNSP PGUID 12 f f t f i 2 16 "18 18" _null_ _null_ _null_ charne - _null_ ));DESCR("not equal");DATA(insert OID = 1246 ( charlt PGNSP PGUID 12 f f t f i 2 16 "18 18" _null_ _null_ _null_ charlt - _null_ ));DESCR("less-than");DATA(insert OID = 72 ( charle PGNSP PGUID 12 f f t f i 2 16 "18 18" _null_ _null_ _null_ charle - _null_ ));DESCR("less-than-or-equal");DATA(insert OID = 73 ( chargt PGNSP PGUID 12 f f t f i 2 16 "18 18" _null_ _null_ _null_ chargt - _null_ ));DESCR("greater-than");DATA(insert OID = 74 ( charge PGNSP PGUID 12 f f t f i 2 16 "18 18" _null_ _null_ _null_ charge - _null_ ));DESCR("greater-than-or-equal");DATA(insert OID = 77 ( int4 PGNSP PGUID 12 f f t f i 1 23 "18" _null_ _null_ _null_ chartoi4 - _null_ ));DESCR("convert char to int4");DATA(insert OID = 78 ( char PGNSP PGUID 12 f f t f i 1 18 "23" _null_ _null_ _null_ i4tochar - _null_ ));DESCR("convert int4 to char");DATA(insert OID = 79 ( nameregexeq PGNSP PGUID 12 f f t f i 2 16 "19 25" _null_ _null_ _null_ nameregexeq - _null_ ));DESCR("matches regex., case-sensitive");DATA(insert OID = 1252 ( nameregexne PGNSP PGUID 12 f f t f i 2 16 "19 25" _null_ _null_ _null_ nameregexne - _null_ ));DESCR("does not match regex., case-sensitive");DATA(insert OID = 1254 ( textregexeq PGNSP PGUID 12 f f t f i 2 16 "25 25" _null_ _null_ _null_ textregexeq - _null_ ));DESCR("matches regex., case-sensitive");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -