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