Header And Logo

PostgreSQL
| The world's most advanced open source database.

pg_conversion.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * pg_conversion.h
00004  *    definition of the system "conversion" relation (pg_conversion)
00005  *    along with the relation's initial contents.
00006  *
00007  *
00008  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00009  * Portions Copyright (c) 1994, Regents of the University of California
00010  *
00011  * src/include/catalog/pg_conversion.h
00012  *
00013  * NOTES
00014  *    the genbki.pl script reads this file and generates .bki
00015  *    information from the DATA() statements.
00016  *
00017  *-------------------------------------------------------------------------
00018  */
00019 #ifndef PG_CONVERSION_H
00020 #define PG_CONVERSION_H
00021 
00022 #include "catalog/genbki.h"
00023 
00024 /* ----------------------------------------------------------------
00025  *      pg_conversion definition.
00026  *
00027  *      cpp turns this into typedef struct FormData_pg_namespace
00028  *
00029  *  conname             name of the conversion
00030  *  connamespace        name space which the conversion belongs to
00031  *  conowner            owner of the conversion
00032  *  conforencoding      FOR encoding id
00033  *  contoencoding       TO encoding id
00034  *  conproc             OID of the conversion proc
00035  *  condefault          TRUE if this is a default conversion
00036  * ----------------------------------------------------------------
00037  */
00038 #define ConversionRelationId  2607
00039 
00040 CATALOG(pg_conversion,2607)
00041 {
00042     NameData    conname;
00043     Oid         connamespace;
00044     Oid         conowner;
00045     int32       conforencoding;
00046     int32       contoencoding;
00047     regproc     conproc;
00048     bool        condefault;
00049 } FormData_pg_conversion;
00050 
00051 /* ----------------
00052  *      Form_pg_conversion corresponds to a pointer to a tuple with
00053  *      the format of pg_conversion relation.
00054  * ----------------
00055  */
00056 typedef FormData_pg_conversion *Form_pg_conversion;
00057 
00058 /* ----------------
00059  *      compiler constants for pg_conversion
00060  * ----------------
00061  */
00062 
00063 #define Natts_pg_conversion             7
00064 #define Anum_pg_conversion_conname      1
00065 #define Anum_pg_conversion_connamespace 2
00066 #define Anum_pg_conversion_conowner     3
00067 #define Anum_pg_conversion_conforencoding       4
00068 #define Anum_pg_conversion_contoencoding        5
00069 #define Anum_pg_conversion_conproc      6
00070 #define Anum_pg_conversion_condefault   7
00071 
00072 /* ----------------
00073  * initial contents of pg_conversion
00074  * ---------------
00075  */
00076 
00077 #endif   /* PG_CONVERSION_H */