pg_language.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_language.h
  4. * definition of the system "language" relation (pg_language)
  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_language.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_LANGUAGE_H
  20. #define PG_LANGUAGE_H
  21. #include "catalog/genbki.h"
  22. /* ----------------
  23. * pg_language definition. cpp turns this into
  24. * typedef struct FormData_pg_language
  25. * ----------------
  26. */
  27. #define LanguageRelationId 2612
  28. CATALOG(pg_language,2612)
  29. {
  30. NameData lanname; /* Language name */
  31. Oid lanowner; /* Language's owner */
  32. bool lanispl; /* Is a procedural language */
  33. bool lanpltrusted; /* PL is trusted */
  34. Oid lanplcallfoid; /* Call handler for PL */
  35. Oid laninline; /* Optional anonymous-block handler function */
  36. Oid lanvalidator; /* Optional validation function */
  37. #ifdef CATALOG_VARLEN /* variable-length fields start here */
  38. aclitem lanacl[1]; /* Access privileges */
  39. #endif
  40. } FormData_pg_language;
  41. /* ----------------
  42. * Form_pg_language corresponds to a pointer to a tuple with
  43. * the format of pg_language relation.
  44. * ----------------
  45. */
  46. typedef FormData_pg_language *Form_pg_language;
  47. /* ----------------
  48. * compiler constants for pg_language
  49. * ----------------
  50. */
  51. #define Natts_pg_language 8
  52. #define Anum_pg_language_lanname 1
  53. #define Anum_pg_language_lanowner 2
  54. #define Anum_pg_language_lanispl 3
  55. #define Anum_pg_language_lanpltrusted 4
  56. #define Anum_pg_language_lanplcallfoid 5
  57. #define Anum_pg_language_laninline 6
  58. #define Anum_pg_language_lanvalidator 7
  59. #define Anum_pg_language_lanacl 8
  60. /* ----------------
  61. * initial contents of pg_language
  62. * ----------------
  63. */
  64. DATA(insert OID = 12 ( "internal" PGUID f f 0 0 2246 _null_ ));
  65. DESCR("built-in functions");
  66. #define INTERNALlanguageId 12
  67. DATA(insert OID = 13 ( "c" PGUID f f 0 0 2247 _null_ ));
  68. DESCR("dynamically-loaded C functions");
  69. #define ClanguageId 13
  70. DATA(insert OID = 14 ( "sql" PGUID f t 0 0 2248 _null_ ));
  71. DESCR("SQL-language functions");
  72. #define SQLlanguageId 14
  73. #endif /* PG_LANGUAGE_H */