mirror of
https://github.com/postgres/postgres.git
synced 2026-03-08 17:20:59 -04:00
pg_attribute, by having genbki.pl derive the information from the various catalog header files. This greatly simplifies modification of the "bootstrapped" catalogs. This patch finally kills genbki.sh and Gen_fmgrtab.sh; we now rely entirely on Perl scripts for those build steps. To avoid creating a Perl build dependency where there was not one before, the output files generated by these scripts are now treated as distprep targets, ie, they will be built and shipped in tarballs. But you will need a reasonably modern Perl (probably at least 5.6) if you want to build from a CVS pull. The changes to the MSVC build process are untested, and may well break --- we'll soon find out from the buildfarm. John Naylor, based on ideas from Robert Haas and others
77 lines
2.2 KiB
C
77 lines
2.2 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* pg_conversion.h
|
|
* definition of the system "conversion" relation (pg_conversion)
|
|
* along with the relation's initial contents.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/catalog/pg_conversion.h,v 1.24 2010/01/05 01:06:56 tgl Exp $
|
|
*
|
|
* NOTES
|
|
* the genbki.pl script reads this file and generates .bki
|
|
* information from the DATA() statements.
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef PG_CONVERSION_H
|
|
#define PG_CONVERSION_H
|
|
|
|
#include "catalog/genbki.h"
|
|
|
|
/* ----------------------------------------------------------------
|
|
* pg_conversion definition.
|
|
*
|
|
* cpp turns this into typedef struct FormData_pg_namespace
|
|
*
|
|
* conname name of the conversion
|
|
* connamespace name space which the conversion belongs to
|
|
* conowner owner of the conversion
|
|
* conforencoding FOR encoding id
|
|
* contoencoding TO encoding id
|
|
* conproc OID of the conversion proc
|
|
* condefault TRUE if this is a default conversion
|
|
* ----------------------------------------------------------------
|
|
*/
|
|
#define ConversionRelationId 2607
|
|
|
|
CATALOG(pg_conversion,2607)
|
|
{
|
|
NameData conname;
|
|
Oid connamespace;
|
|
Oid conowner;
|
|
int4 conforencoding;
|
|
int4 contoencoding;
|
|
regproc conproc;
|
|
bool condefault;
|
|
} FormData_pg_conversion;
|
|
|
|
/* ----------------
|
|
* Form_pg_conversion corresponds to a pointer to a tuple with
|
|
* the format of pg_conversion relation.
|
|
* ----------------
|
|
*/
|
|
typedef FormData_pg_conversion *Form_pg_conversion;
|
|
|
|
/* ----------------
|
|
* compiler constants for pg_conversion
|
|
* ----------------
|
|
*/
|
|
|
|
#define Natts_pg_conversion 7
|
|
#define Anum_pg_conversion_conname 1
|
|
#define Anum_pg_conversion_connamespace 2
|
|
#define Anum_pg_conversion_conowner 3
|
|
#define Anum_pg_conversion_conforencoding 4
|
|
#define Anum_pg_conversion_contoencoding 5
|
|
#define Anum_pg_conversion_conproc 6
|
|
#define Anum_pg_conversion_condefault 7
|
|
|
|
/* ----------------
|
|
* initial contents of pg_conversion
|
|
* ---------------
|
|
*/
|
|
|
|
#endif /* PG_CONVERSION_H */
|