mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Get rid of the need for manual maintenance of the initial contents of
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
This commit is contained in:
@@ -1,32 +1,20 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* pg_type.h
|
||||
* definition of the system "type" relation (pg_type)
|
||||
* along with the relation's initial contents.
|
||||
* Hard-wired knowledge about some standard type OIDs.
|
||||
*
|
||||
* XXX keep this in sync with src/include/catalog/pg_type.h
|
||||
*
|
||||
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/pg_type.h,v 1.10 2010/01/02 16:58:11 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* the genbki.sh script reads this file and generates .bki
|
||||
* information from the DATA() statements.
|
||||
* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/pg_type.h,v 1.11 2010/01/05 01:06:57 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef PG_TYPE_H
|
||||
#define PG_TYPE_H
|
||||
|
||||
/* ----------------
|
||||
* initial contents of pg_type
|
||||
* ----------------
|
||||
*/
|
||||
|
||||
/* keep the following ordered by OID so that later changes can be made easier*/
|
||||
|
||||
/* OIDS 1 - 99 */
|
||||
#define BOOLOID 16
|
||||
#define BYTEAOID 17
|
||||
#define CHAROID 18
|
||||
|
||||
Reference in New Issue
Block a user