mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-07-31 15:53:24 +02:00
inclusions in src/include/catalog/*.h files. The main idea here is to push function declarations for src/backend/catalog/*.c files into separate headers, rather than sticking them into the corresponding catalog definition file as has been done in the past. This commit only carries out that idea fully for pg_proc, pg_type and pg_conversion, but that's enough for the moment --- if pg_list.h ever becomes unsafe for frontend code to include, we'll need to work a bit more. Zdenek Kotala
55 lines
1.4 KiB
C
55 lines
1.4 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* pg_inherits.h
|
|
* definition of the system "inherits" relation (pg_inherits)
|
|
* along with the relation's initial contents.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/catalog/pg_inherits.h,v 1.25 2008/03/27 03:57:34 tgl Exp $
|
|
*
|
|
* NOTES
|
|
* the genbki.sh script reads this file and generates .bki
|
|
* information from the DATA() statements.
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef PG_INHERITS_H
|
|
#define PG_INHERITS_H
|
|
|
|
#include "catalog/genbki.h"
|
|
|
|
/* ----------------
|
|
* pg_inherits definition. cpp turns this into
|
|
* typedef struct FormData_pg_inherits
|
|
* ----------------
|
|
*/
|
|
#define InheritsRelationId 2611
|
|
|
|
CATALOG(pg_inherits,2611) BKI_WITHOUT_OIDS
|
|
{
|
|
Oid inhrelid;
|
|
Oid inhparent;
|
|
int4 inhseqno;
|
|
} FormData_pg_inherits;
|
|
|
|
/* ----------------
|
|
* Form_pg_inherits corresponds to a pointer to a tuple with
|
|
* the format of pg_inherits relation.
|
|
* ----------------
|
|
*/
|
|
typedef FormData_pg_inherits *Form_pg_inherits;
|
|
|
|
/* ----------------
|
|
* compiler constants for pg_inherits
|
|
* ----------------
|
|
*/
|
|
#define Natts_pg_inherits 3
|
|
#define Anum_pg_inherits_inhrelid 1
|
|
#define Anum_pg_inherits_inhparent 2
|
|
#define Anum_pg_inherits_inhseqno 3
|
|
|
|
#endif /* PG_INHERITS_H */
|