pg_pltemplate.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_pltemplate.h
  4. * definition of the system "PL template" relation (pg_pltemplate)
  5. * along with the relation's initial contents.
  6. *
  7. *
  8. * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
  9. * Portions Copyright (c) 1994, Regents of the University of California
  10. *
  11. * src/include/catalog/pg_pltemplate.h
  12. *
  13. * NOTES
  14. * the genbki.pl script reads this file and generates .bki
  15. * information from the DATA() statements.
  16. *
  17. *-------------------------------------------------------------------------
  18. */
  19. #ifndef PG_PLTEMPLATE_H
  20. #define PG_PLTEMPLATE_H
  21. #include "catalog/genbki.h"
  22. /* ----------------
  23. * pg_pltemplate definition. cpp turns this into
  24. * typedef struct FormData_pg_pltemplate
  25. * ----------------
  26. */
  27. #define PLTemplateRelationId 1136
  28. CATALOG(pg_pltemplate,1136) BKI_SHARED_RELATION BKI_WITHOUT_OIDS
  29. {
  30. NameData tmplname; /* name of PL */
  31. bool tmpltrusted; /* PL is trusted? */
  32. bool tmpldbacreate; /* PL is installable by db owner? */
  33. #ifdef CATALOG_VARLEN /* variable-length fields start here */
  34. text tmplhandler BKI_FORCE_NOT_NULL; /* name of call handler
  35. * function */
  36. text tmplinline; /* name of anonymous-block handler, or NULL */
  37. text tmplvalidator; /* name of validator function, or NULL */
  38. text tmpllibrary BKI_FORCE_NOT_NULL; /* path of shared library */
  39. aclitem tmplacl[1]; /* access privileges for template */
  40. #endif
  41. } FormData_pg_pltemplate;
  42. /* ----------------
  43. * Form_pg_pltemplate corresponds to a pointer to a row with
  44. * the format of pg_pltemplate relation.
  45. * ----------------
  46. */
  47. typedef FormData_pg_pltemplate *Form_pg_pltemplate;
  48. /* ----------------
  49. * compiler constants for pg_pltemplate
  50. * ----------------
  51. */
  52. #define Natts_pg_pltemplate 8
  53. #define Anum_pg_pltemplate_tmplname 1
  54. #define Anum_pg_pltemplate_tmpltrusted 2
  55. #define Anum_pg_pltemplate_tmpldbacreate 3
  56. #define Anum_pg_pltemplate_tmplhandler 4
  57. #define Anum_pg_pltemplate_tmplinline 5
  58. #define Anum_pg_pltemplate_tmplvalidator 6
  59. #define Anum_pg_pltemplate_tmpllibrary 7
  60. #define Anum_pg_pltemplate_tmplacl 8
  61. /* ----------------
  62. * initial contents of pg_pltemplate
  63. * ----------------
  64. */
  65. DATA(insert ( "plpgsql" t t "plpgsql_call_handler" "plpgsql_inline_handler" "plpgsql_validator" "$libdir/plpgsql" _null_ ));
  66. DATA(insert ( "pltcl" t t "pltcl_call_handler" _null_ _null_ "$libdir/pltcl" _null_ ));
  67. DATA(insert ( "pltclu" f f "pltclu_call_handler" _null_ _null_ "$libdir/pltcl" _null_ ));
  68. DATA(insert ( "plperl" t t "plperl_call_handler" "plperl_inline_handler" "plperl_validator" "$libdir/plperl" _null_ ));
  69. DATA(insert ( "plperlu" f f "plperlu_call_handler" "plperlu_inline_handler" "plperlu_validator" "$libdir/plperl" _null_ ));
  70. DATA(insert ( "plpythonu" f f "plpython_call_handler" "plpython_inline_handler" "plpython_validator" "$libdir/plpython2" _null_ ));
  71. DATA(insert ( "plpython2u" f f "plpython2_call_handler" "plpython2_inline_handler" "plpython2_validator" "$libdir/plpython2" _null_ ));
  72. DATA(insert ( "plpython3u" f f "plpython3_call_handler" "plpython3_inline_handler" "plpython3_validator" "$libdir/plpython3" _null_ ));
  73. #endif /* PG_PLTEMPLATE_H */