pg_conversion.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_conversion.h
  4. * definition of the system "conversion" relation (pg_conversion)
  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_conversion.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_CONVERSION_H
  20. #define PG_CONVERSION_H
  21. #include "catalog/genbki.h"
  22. /* ----------------------------------------------------------------
  23. * pg_conversion definition.
  24. *
  25. * cpp turns this into typedef struct FormData_pg_namespace
  26. *
  27. * conname name of the conversion
  28. * connamespace name space which the conversion belongs to
  29. * conowner owner of the conversion
  30. * conforencoding FOR encoding id
  31. * contoencoding TO encoding id
  32. * conproc OID of the conversion proc
  33. * condefault TRUE if this is a default conversion
  34. * ----------------------------------------------------------------
  35. */
  36. #define ConversionRelationId 2607
  37. CATALOG(pg_conversion,2607)
  38. {
  39. NameData conname;
  40. Oid connamespace;
  41. Oid conowner;
  42. int32 conforencoding;
  43. int32 contoencoding;
  44. regproc conproc;
  45. bool condefault;
  46. } FormData_pg_conversion;
  47. /* ----------------
  48. * Form_pg_conversion corresponds to a pointer to a tuple with
  49. * the format of pg_conversion relation.
  50. * ----------------
  51. */
  52. typedef FormData_pg_conversion *Form_pg_conversion;
  53. /* ----------------
  54. * compiler constants for pg_conversion
  55. * ----------------
  56. */
  57. #define Natts_pg_conversion 7
  58. #define Anum_pg_conversion_conname 1
  59. #define Anum_pg_conversion_connamespace 2
  60. #define Anum_pg_conversion_conowner 3
  61. #define Anum_pg_conversion_conforencoding 4
  62. #define Anum_pg_conversion_contoencoding 5
  63. #define Anum_pg_conversion_conproc 6
  64. #define Anum_pg_conversion_condefault 7
  65. /* ----------------
  66. * initial contents of pg_conversion
  67. * ---------------
  68. */
  69. #endif /* PG_CONVERSION_H */