📄 pg_proc.h
字号:
/*------------------------------------------------------------------------- * * pg_proc.h * definition of the system "procedure" relation (pg_proc) * along with the relation's initial contents. * * Copyright (c) 1994, Regents of the University of California * * $Id: pg_proc.h,v 1.99.2.2 1999/08/29 01:39:57 tgl Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki * information from the DATA() statements. utils/Gen_fmgrtab.sh * generates fmgr.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 "tcop/dest.h"/* ---------------- * postgres.h contains the system type definintions 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; int4 proowner; Oid prolang; bool proisinh; bool proistrusted; bool proiscachable; int2 pronargs; bool proretset; Oid prorettype; oid8 proargtypes; int4 probyte_pct; int4 properbyte_cpu; int4 propercall_cpu; int4 prooutin_ratio; text prosrc; /* VARIABLE LENGTH FIELD */ bytea probin; /* 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 16#define Anum_pg_proc_proname 1#define Anum_pg_proc_proowner 2#define Anum_pg_proc_prolang 3#define Anum_pg_proc_proisinh 4#define Anum_pg_proc_proistrusted 5#define Anum_pg_proc_proiscachable 6#define Anum_pg_proc_pronargs 7#define Anum_pg_proc_proretset 8#define Anum_pg_proc_prorettype 9#define Anum_pg_proc_proargtypes 10#define Anum_pg_proc_probyte_pct 11#define Anum_pg_proc_properbyte_cpu 12#define Anum_pg_proc_propercall_cpu 13#define Anum_pg_proc_prooutin_ratio 14#define Anum_pg_proc_prosrc 15#define Anum_pg_proc_probin 16/* ---------------- * 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 PGUID 11 f t f 1 f 16 "0" 100 0 0 100 boolin - ));DESCR("(internal)");DATA(insert OID = 1243 ( boolout PGUID 11 f t f 1 f 23 "0" 100 0 0 100 boolout - ));DESCR("(internal)");DATA(insert OID = 1244 ( byteain PGUID 11 f t f 1 f 17 "0" 100 0 0 100 byteain - ));DESCR("(internal)");DATA(insert OID = 31 ( byteaout PGUID 11 f t f 1 f 23 "0" 100 0 0 100 byteaout - ));DESCR("(internal)");DATA(insert OID = 1245 ( charin PGUID 11 f t f 1 f 18 "0" 100 0 0 100 charin - ));DESCR("(internal)");DATA(insert OID = 33 ( charout PGUID 11 f t f 1 f 23 "0" 100 0 0 100 charout - ));DESCR("(internal)");DATA(insert OID = 34 ( namein PGUID 11 f t f 1 f 19 "0" 100 0 0 100 namein - ));DESCR("(internal)");DATA(insert OID = 35 ( nameout PGUID 11 f t f 1 f 23 "0" 100 0 0 100 nameout - ));DESCR("(internal)");DATA(insert OID = 38 ( int2in PGUID 11 f t f 1 f 21 "0" 100 0 0 100 int2in - ));DESCR("(internal)");DATA(insert OID = 39 ( int2out PGUID 11 f t f 1 f 23 "0" 100 0 0 100 int2out - ));DESCR("(internal)");DATA(insert OID = 40 ( int28in PGUID 11 f t f 1 f 22 "0" 100 0 0 100 int28in - ));DESCR("(internal)");DATA(insert OID = 41 ( int28out PGUID 11 f t f 1 f 23 "0" 100 0 0 100 int28out - ));DESCR("(internal)");DATA(insert OID = 42 ( int4in PGUID 11 f t f 1 f 23 "0" 100 0 0 100 int4in - ));DESCR("(internal)");DATA(insert OID = 43 ( int4out PGUID 11 f t f 1 f 19 "0" 100 0 0 100 int4out - ));DESCR("(internal)");DATA(insert OID = 44 ( regprocin PGUID 11 f t f 1 f 24 "0" 100 0 0 100 regprocin - ));DESCR("(internal)");DATA(insert OID = 45 ( regprocout PGUID 11 f t f 1 f 23 "0" 100 0 0 100 regprocout - ));DESCR("(internal)");DATA(insert OID = 46 ( textin PGUID 11 f t f 1 f 25 "0" 100 0 0 100 textin - ));DESCR("(internal)");DATA(insert OID = 47 ( textout PGUID 11 f t f 1 f 23 "0" 100 0 0 100 textout - ));DESCR("(internal)");DATA(insert OID = 48 ( tidin PGUID 11 f t f 1 f 27 "0" 100 0 0 100 tidin - ));DESCR("(internal)");DATA(insert OID = 49 ( tidout PGUID 11 f t f 1 f 23 "0" 100 0 0 100 tidout - ));DESCR("(internal)");DATA(insert OID = 50 ( xidin PGUID 11 f t f 1 f 28 "0" 100 0 0 100 xidin - ));DESCR("(internal)");DATA(insert OID = 51 ( xidout PGUID 11 f t f 1 f 23 "0" 100 0 0 100 xidout - ));DESCR("(internal)");DATA(insert OID = 52 ( cidin PGUID 11 f t f 1 f 29 "0" 100 0 0 100 cidin - ));DESCR("(internal)");DATA(insert OID = 53 ( cidout PGUID 11 f t f 1 f 23 "0" 100 0 0 100 cidout - ));DESCR("(internal)");DATA(insert OID = 54 ( oid8in PGUID 11 f t f 1 f 30 "0" 100 0 0 100 oid8in - ));DESCR("(internal)");DATA(insert OID = 55 ( oid8out PGUID 11 f t f 1 f 23 "0" 100 0 0 100 oid8out - ));DESCR("(internal)");DATA(insert OID = 56 ( boollt PGUID 11 f t f 2 f 16 "16 16" 100 0 0 100 boollt - ));DESCR("less-than");DATA(insert OID = 57 ( boolgt PGUID 11 f t f 2 f 16 "16 16" 100 0 0 100 boolgt - ));DESCR("greater-than");DATA(insert OID = 60 ( booleq PGUID 11 f t f 2 f 16 "16 16" 100 0 0 100 booleq - ));DESCR("equal");DATA(insert OID = 61 ( chareq PGUID 11 f t f 2 f 16 "18 18" 100 0 0 100 chareq - ));DESCR("equal");DATA(insert OID = 62 ( nameeq PGUID 11 f t f 2 f 16 "19 19" 100 0 0 100 nameeq - ));DESCR("equal");DATA(insert OID = 63 ( int2eq PGUID 11 f t f 2 f 16 "21 21" 100 0 0 100 int2eq - ));DESCR("equal");DATA(insert OID = 64 ( int2lt PGUID 11 f t f 2 f 16 "21 21" 100 0 0 100 int2lt - ));DESCR("less-than");DATA(insert OID = 65 ( int4eq PGUID 11 f t f 2 f 16 "23 23" 100 0 0 100 int4eq - ));DESCR("equal");DATA(insert OID = 66 ( int4lt PGUID 11 f t f 2 f 16 "23 23" 100 0 0 100 int4lt - ));DESCR("less-than");DATA(insert OID = 67 ( texteq PGUID 11 f t f 2 f 16 "25 25" 100 0 0 0 texteq - ));DESCR("equal");DATA(insert OID = 68 ( xideq PGUID 11 f t f 2 f 16 "28 28" 100 0 0 100 xideq - ));DESCR("equal");DATA(insert OID = 69 ( cideq PGUID 11 f t f 2 f 16 "29 29" 100 0 0 100 cideq - ));DESCR("equal");DATA(insert OID = 70 ( charne PGUID 11 f t f 2 f 16 "18 18" 100 0 0 100 charne - ));DESCR("not equal");DATA(insert OID = 1246 ( charlt PGUID 11 f t f 2 f 16 "18 18" 100 0 0 100 charlt - ));DESCR("less-than");DATA(insert OID = 72 ( charle PGUID 11 f t f 2 f 16 "18 18" 100 0 0 100 charle - ));DESCR("less-than-or-equal");DATA(insert OID = 73 ( chargt PGUID 11 f t f 2 f 16 "18 18" 100 0 0 100 chargt - ));DESCR("greater-than");DATA(insert OID = 74 ( charge PGUID 11 f t f 2 f 16 "18 18" 100 0 0 100 charge - ));DESCR("greater-than-or-equal");DATA(insert OID = 1248 ( charpl PGUID 11 f t f 2 f 18 "18 18" 100 0 0 100 charpl - ));DESCR("addition");DATA(insert OID = 1250 ( charmi PGUID 11 f t f 2 f 18 "18 18" 100 0 0 100 charmi - ));DESCR("subtract");DATA(insert OID = 77 ( charmul PGUID 11 f t f 2 f 18 "18 18" 100 0 0 100 charmul - ));DESCR("multiply");DATA(insert OID = 78 ( chardiv PGUID 11 f t f 2 f 18 "18 18" 100 0 0 100 chardiv - ));DESCR("divide");DATA(insert OID = 79 ( nameregexeq PGUID 11 f t f 2 f 16 "19 25" 100 0 0 100 nameregexeq - ));DESCR("matches regex., case-sensitive");DATA(insert OID = 1252 ( nameregexne PGUID 11 f t f 2 f 16 "19 25" 100 0 0 100 nameregexne - ));DESCR("does not match regex., case-sensitive");DATA(insert OID = 1254 ( textregexeq PGUID 11 f t f 2 f 16 "25 25" 100 0 1 0 textregexeq - ));DESCR("matches regex., case-sensitive");DATA(insert OID = 1256 ( textregexne PGUID 11 f t f 2 f 16 "25 25" 100 0 1 0 textregexne - ));DESCR("does not match regex., case-sensitive");DATA(insert OID = 1257 ( textlen PGUID 11 f t f 1 f 23 "25" 100 0 1 0 textlen - ));DESCR("length");DATA(insert OID = 1258 ( textcat PGUID 11 f t f 2 f 25 "25 25" 100 0 1 0 textcat - ));DESCR("concatenate");DATA(insert OID = 1377 ( textoctetlen PGUID 11 f t f 1 f 23 "25" 100 0 1 0 textoctetlen - ));DESCR("octet length");DATA(insert OID = 84 ( boolne PGUID 11 f t f 2 f 16 "16 16" 100 0 0 100 boolne - ));DESCR("not equal");DATA(insert OID = 89 ( version PGUID 11 f t t 0 f 25 "" 100 0 0 100 version - ));DESCR("PostgreSQL version string");DATA(insert OID = 1265 ( rtsel PGUID 11 f t f 7 f 701 "26 26 21 0 23 23 26" 100 0 0 100 rtsel - ));DESCR("r-tree");DATA(insert OID = 1266 ( rtnpage PGUID 11 f t f 7 f 701 "26 26 21 0 23 23 26" 100 0 0 100 rtnpage - ));DESCR("r-tree");DATA(insert OID = 1268 ( btreesel PGUID 11 f t f 7 f 701 "26 26 21 0 23 23 26" 100 0 0 100 btreesel - ));DESCR("btree selectivity");/* OIDS 100 - 199 */DATA(insert OID = 1270 ( btreenpage PGUID 11 f t f 7 f 701 "26 26 21 0 23 23 26" 100 0 0 100 btreenpage - ));DESCR("btree");DATA(insert OID = 1272 ( eqsel PGUID 11 f t f 5 f 701 "26 26 21 0 23" 100 0 0 100 eqsel - ));DESCR("general selectivity");DATA(insert OID = 102 ( neqsel PGUID 11 f t f 5 f 701 "26 26 21 0 23" 100 0 0 100 neqsel - ));DESCR("not-equal selectivity");DATA(insert OID = 103 ( intltsel PGUID 11 f t f 5 f 701 "26 26 21 0 23" 100 0 0 100 intltsel - ));DESCR("selectivity");DATA(insert OID = 104 ( intgtsel PGUID 11 f t f 5 f 701 "26 26 21 0 23" 100 0 0 100 intgtsel - ));DESCR("selectivity");DATA(insert OID = 105 ( eqjoinsel PGUID 11 f t f 5 f 701 "26 26 21 26 21" 100 0 0 100 eqjoinsel - ));DESCR("selectivity");DATA(insert OID = 106 ( neqjoinsel PGUID 11 f t f 5 f 701 "26 26 21 26 21" 100 0 0 100 neqjoinsel - ));DESCR("selectivity");DATA(insert OID = 107 ( intltjoinsel PGUID 11 f t f 5 f 701 "26 26 21 26 21" 100 0 0 100 intltjoinsel - ));DESCR("selectivity");DATA(insert OID = 108 ( intgtjoinsel PGUID 11 f t f 5 f 701 "26 26 21 26 21" 100 0 0 100 intgtjoinsel - ));DESCR("selectivity");DATA(insert OID = 112 ( int4_text PGUID 11 f t f 1 f 25 "23" 100 0 0 100 int4_text - ));DESCR("convert int4 to text");DATA(insert OID = 113 ( int2_text PGUID 11 f t f 1 f 25 "21" 100 0 0 100 int2_text - ));DESCR("convert int2 to text");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -