~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/include/catalog/pg_inherits.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * pg_inherits.h
 
4
 *        definition of the system "inherits" relation (pg_inherits)
 
5
 *        along with the relation's initial contents.
 
6
 *
 
7
 *
 
8
 * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
 
9
 * Portions Copyright (c) 1994, Regents of the University of California
 
10
 *
 
11
 * $PostgreSQL: pgsql/src/include/catalog/pg_inherits.h,v 1.19 2004-12-31 22:03:24 pgsql Exp $
 
12
 *
 
13
 * NOTES
 
14
 *        the genbki.sh script reads this file and generates .bki
 
15
 *        information from the DATA() statements.
 
16
 *
 
17
 *-------------------------------------------------------------------------
 
18
 */
 
19
#ifndef PG_INHERITS_H
 
20
#define PG_INHERITS_H
 
21
 
 
22
/* ----------------
 
23
 *              postgres.h contains the system type definitions and the
 
24
 *              CATALOG(), BOOTSTRAP and DATA() sugar words so this file
 
25
 *              can be read by both genbki.sh and the C compiler.
 
26
 * ----------------
 
27
 */
 
28
 
 
29
/* ----------------
 
30
 *              pg_inherits definition.  cpp turns this into
 
31
 *              typedef struct FormData_pg_inherits
 
32
 * ----------------
 
33
 */
 
34
CATALOG(pg_inherits) BKI_WITHOUT_OIDS
 
35
{
 
36
        Oid                     inhrelid;
 
37
        Oid                     inhparent;
 
38
        int4            inhseqno;
 
39
} FormData_pg_inherits;
 
40
 
 
41
/* ----------------
 
42
 *              Form_pg_inherits corresponds to a pointer to a tuple with
 
43
 *              the format of pg_inherits relation.
 
44
 * ----------------
 
45
 */
 
46
typedef FormData_pg_inherits *Form_pg_inherits;
 
47
 
 
48
/* ----------------
 
49
 *              compiler constants for pg_inherits
 
50
 * ----------------
 
51
 */
 
52
#define Natts_pg_inherits                               3
 
53
#define Anum_pg_inherits_inhrelid               1
 
54
#define Anum_pg_inherits_inhparent              2
 
55
#define Anum_pg_inherits_inhseqno               3
 
56
 
 
57
#endif   /* PG_INHERITS_H */