pg_proc.h
来自「PostgreSQL7.4.6 for Linux」· C头文件 代码 · 共 1,150 行 · 第 1/5 页
H
1,150 行
/*------------------------------------------------------------------------- * * pg_proc.h * definition of the system "procedure" relation (pg_proc) * along with the relation's initial contents. * * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * $Id: pg_proc.h,v 1.314 2003/10/21 16:23:16 tgl 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#include "nodes/pg_list.h"/* ---------------- * postgres.h contains the system type definitions and the * CATALOG(), 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 * ---------------- */CATALOG(pg_proc) BOOTSTRAP{ NameData proname; /* procedure name */ Oid pronamespace; /* OID of namespace containing this proc */ int4 proowner; /* proc 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 */ oidvector proargtypes; /* OIDs of argument types */ text prosrc; /* VARIABLE LENGTH FIELD */ bytea probin; /* VARIABLE LENGTH FIELD */ aclitem proacl[1]; /* VARIABLE LENGTH FIELD */} 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 15#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_prosrc 13#define Anum_pg_proc_probin 14#define Anum_pg_proc_proacl 15/* ---------------- * 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" boolin - _null_ ));DESCR("I/O");DATA(insert OID = 1243 ( boolout PGNSP PGUID 12 f f t f i 1 2275 "16" boolout - _null_ ));DESCR("I/O");DATA(insert OID = 1244 ( byteain PGNSP PGUID 12 f f t f i 1 17 "2275" byteain - _null_ ));DESCR("I/O");DATA(insert OID = 31 ( byteaout PGNSP PGUID 12 f f t f i 1 2275 "17" byteaout - _null_ ));DESCR("I/O");DATA(insert OID = 1245 ( charin PGNSP PGUID 12 f f t f i 1 18 "2275" charin - _null_ ));DESCR("I/O");DATA(insert OID = 33 ( charout PGNSP PGUID 12 f f t f i 1 2275 "18" charout - _null_ ));DESCR("I/O");DATA(insert OID = 34 ( namein PGNSP PGUID 12 f f t f i 1 19 "2275" namein - _null_ ));DESCR("I/O");DATA(insert OID = 35 ( nameout PGNSP PGUID 12 f f t f i 1 2275 "19" nameout - _null_ ));DESCR("I/O");DATA(insert OID = 38 ( int2in PGNSP PGUID 12 f f t f i 1 21 "2275" int2in - _null_ ));DESCR("I/O");DATA(insert OID = 39 ( int2out PGNSP PGUID 12 f f t f i 1 2275 "21" int2out - _null_ ));DESCR("I/O");DATA(insert OID = 40 ( int2vectorin PGNSP PGUID 12 f f t f i 1 22 "2275" int2vectorin - _null_ ));DESCR("I/O");DATA(insert OID = 41 ( int2vectorout PGNSP PGUID 12 f f t f i 1 2275 "22" int2vectorout - _null_ ));DESCR("I/O");DATA(insert OID = 42 ( int4in PGNSP PGUID 12 f f t f i 1 23 "2275" int4in - _null_ ));DESCR("I/O");DATA(insert OID = 43 ( int4out PGNSP PGUID 12 f f t f i 1 2275 "23" int4out - _null_ ));DESCR("I/O");DATA(insert OID = 44 ( regprocin PGNSP PGUID 12 f f t f s 1 24 "2275" regprocin - _null_ ));DESCR("I/O");DATA(insert OID = 45 ( regprocout PGNSP PGUID 12 f f t f s 1 2275 "24" regprocout - _null_ ));DESCR("I/O");DATA(insert OID = 46 ( textin PGNSP PGUID 12 f f t f i 1 25 "2275" textin - _null_ ));DESCR("I/O");DATA(insert OID = 47 ( textout PGNSP PGUID 12 f f t f i 1 2275 "25" textout - _null_ ));DESCR("I/O");DATA(insert OID = 48 ( tidin PGNSP PGUID 12 f f t f i 1 27 "2275" tidin - _null_ ));DESCR("I/O");DATA(insert OID = 49 ( tidout PGNSP PGUID 12 f f t f i 1 2275 "27" tidout - _null_ ));DESCR("I/O");DATA(insert OID = 50 ( xidin PGNSP PGUID 12 f f t f i 1 28 "2275" xidin - _null_ ));DESCR("I/O");DATA(insert OID = 51 ( xidout PGNSP PGUID 12 f f t f i 1 2275 "28" xidout - _null_ ));DESCR("I/O");DATA(insert OID = 52 ( cidin PGNSP PGUID 12 f f t f i 1 29 "2275" cidin - _null_ ));DESCR("I/O");DATA(insert OID = 53 ( cidout PGNSP PGUID 12 f f t f i 1 2275 "29" cidout - _null_ ));DESCR("I/O");DATA(insert OID = 54 ( oidvectorin PGNSP PGUID 12 f f t f i 1 30 "2275" oidvectorin - _null_ ));DESCR("I/O");DATA(insert OID = 55 ( oidvectorout PGNSP PGUID 12 f f t f i 1 2275 "30" oidvectorout - _null_ ));DESCR("I/O");DATA(insert OID = 56 ( boollt PGNSP PGUID 12 f f t f i 2 16 "16 16" boollt - _null_ ));DESCR("less-than");DATA(insert OID = 57 ( boolgt PGNSP PGUID 12 f f t f i 2 16 "16 16" boolgt - _null_ ));DESCR("greater-than");DATA(insert OID = 60 ( booleq PGNSP PGUID 12 f f t f i 2 16 "16 16" booleq - _null_ ));DESCR("equal");DATA(insert OID = 61 ( chareq PGNSP PGUID 12 f f t f i 2 16 "18 18" chareq - _null_ ));DESCR("equal");DATA(insert OID = 62 ( nameeq PGNSP PGUID 12 f f t f i 2 16 "19 19" nameeq - _null_ ));DESCR("equal");DATA(insert OID = 63 ( int2eq PGNSP PGUID 12 f f t f i 2 16 "21 21" int2eq - _null_ ));DESCR("equal");DATA(insert OID = 64 ( int2lt PGNSP PGUID 12 f f t f i 2 16 "21 21" int2lt - _null_ ));DESCR("less-than");DATA(insert OID = 65 ( int4eq PGNSP PGUID 12 f f t f i 2 16 "23 23" int4eq - _null_ ));DESCR("equal");DATA(insert OID = 66 ( int4lt PGNSP PGUID 12 f f t f i 2 16 "23 23" int4lt - _null_ ));DESCR("less-than");DATA(insert OID = 67 ( texteq PGNSP PGUID 12 f f t f i 2 16 "25 25" texteq - _null_ ));DESCR("equal");DATA(insert OID = 68 ( xideq PGNSP PGUID 12 f f t f i 2 16 "28 28" xideq - _null_ ));DESCR("equal");DATA(insert OID = 69 ( cideq PGNSP PGUID 12 f f t f i 2 16 "29 29" cideq - _null_ ));DESCR("equal");DATA(insert OID = 70 ( charne PGNSP PGUID 12 f f t f i 2 16 "18 18" charne - _null_ ));DESCR("not equal");DATA(insert OID = 1246 ( charlt PGNSP PGUID 12 f f t f i 2 16 "18 18" charlt - _null_ ));DESCR("less-than");DATA(insert OID = 72 ( charle PGNSP PGUID 12 f f t f i 2 16 "18 18" charle - _null_ ));DESCR("less-than-or-equal");DATA(insert OID = 73 ( chargt PGNSP PGUID 12 f f t f i 2 16 "18 18" chargt - _null_ ));DESCR("greater-than");DATA(insert OID = 74 ( charge PGNSP PGUID 12 f f t f i 2 16 "18 18" charge - _null_ ));DESCR("greater-than-or-equal");DATA(insert OID = 1248 ( charpl PGNSP PGUID 12 f f t f i 2 18 "18 18" charpl - _null_ ));DESCR("add");DATA(insert OID = 1250 ( charmi PGNSP PGUID 12 f f t f i 2 18 "18 18" charmi - _null_ ));DESCR("subtract");DATA(insert OID = 77 ( charmul PGNSP PGUID 12 f f t f i 2 18 "18 18" charmul - _null_ ));DESCR("multiply");DATA(insert OID = 78 ( chardiv PGNSP PGUID 12 f f t f i 2 18 "18 18" chardiv - _null_ ));DESCR("divide");DATA(insert OID = 79 ( nameregexeq PGNSP PGUID 12 f f t f i 2 16 "19 25" nameregexeq - _null_ ));DESCR("matches regex., case-sensitive");DATA(insert OID = 1252 ( nameregexne PGNSP PGUID 12 f f t f i 2 16 "19 25" 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" textregexeq - _null_ ));DESCR("matches regex., case-sensitive");DATA(insert OID = 1256 ( textregexne PGNSP PGUID 12 f f t f i 2 16 "25 25" textregexne - _null_ ));DESCR("does not match regex., case-sensitive");DATA(insert OID = 1257 ( textlen PGNSP PGUID 12 f f t f i 1 23 "25" textlen - _null_ ));DESCR("length");DATA(insert OID = 1258 ( textcat PGNSP PGUID 12 f f t f i 2 25 "25 25" textcat - _null_ ));DESCR("concatenate");DATA(insert OID = 84 ( boolne PGNSP PGUID 12 f f t f i 2 16 "16 16" boolne - _null_ ));DESCR("not equal");DATA(insert OID = 89 ( version PGNSP PGUID 12 f f t f s 0 25 "" pgsql_version - _null_ ));DESCR("PostgreSQL version string");/* OIDS 100 - 199 */DATA(insert OID = 100 ( int8fac PGNSP PGUID 12 f f t f i 1 20 "20" int8fac - _null_ ));DESCR("factorial");DATA(insert OID = 101 ( eqsel PGNSP PGUID 12 f f t f s 4 701 "2281 26 2281 23" eqsel - _null_ ));DESCR("restriction selectivity of = and related operators");DATA(insert OID = 102 ( neqsel PGNSP PGUID 12 f f t f s 4 701 "2281 26 2281 23" neqsel - _null_ ));DESCR("restriction selectivity of <> and related operators");DATA(insert OID = 103 ( scalarltsel PGNSP PGUID 12 f f t f s 4 701 "2281 26 2281 23" scalarltsel - _null_ ));DESCR("restriction selectivity of < and related operators on scalar datatypes");DATA(insert OID = 104 ( scalargtsel PGNSP PGUID 12 f f t f s 4 701 "2281 26 2281 23" scalargtsel - _null_ ));DESCR("restriction selectivity of > and related operators on scalar datatypes");DATA(insert OID = 105 ( eqjoinsel PGNSP PGUID 12 f f t f s 4 701 "2281 26 2281 21" eqjoinsel - _null_ ));DESCR("join selectivity of = and related operators");DATA(insert OID = 106 ( neqjoinsel PGNSP PGUID 12 f f t f s 4 701 "2281 26 2281 21" neqjoinsel - _null_ ));DESCR("join selectivity of <> and related operators");DATA(insert OID = 107 ( scalarltjoinsel PGNSP PGUID 12 f f t f s 4 701 "2281 26 2281 21" scalarltjoinsel - _null_ ));DESCR("join selectivity of < and related operators on scalar datatypes");DATA(insert OID = 108 ( scalargtjoinsel PGNSP PGUID 12 f f t f s 4 701 "2281 26 2281 21" scalargtjoinsel - _null_ ));DESCR("join selectivity of > and related operators on scalar datatypes");DATA(insert OID = 109 ( unknownin PGNSP PGUID 12 f f t f i 1 705 "2275" unknownin - _null_ ));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?