head	1.17;
access;
symbols
	release_4_2:1.17
	aix_ok:1.16
	Version_2_1:1.7
	Version_2:1.1;
locks; strict;
comment	@ * @;


1.17
date	94.01.30.05.39.13;	author aoki;	state Exp;
branches;
next	1.16;

1.16
date	93.07.16.19.01.01;	author avi;	state Exp;
branches;
next	1.15;

1.15
date	93.03.31.07.32.01;	author mao;	state Exp;
branches;
next	1.14;

1.14
date	92.12.19.01.38.45;	author aoki;	state Exp;
branches;
next	1.13;

1.13
date	92.12.16.02.58.25;	author aoki;	state Exp;
branches;
next	1.12;

1.12
date	92.07.15.22.14.02;	author mao;	state Exp;
branches;
next	1.11;

1.11
date	91.09.08.16.22.33;	author glass;	state Exp;
branches;
next	1.10;

1.10
date	91.08.15.17.42.33;	author caetta;	state Exp;
branches;
next	1.9;

1.9
date	91.07.03.00.45.58;	author mao;	state Exp;
branches;
next	1.8;

1.8
date	91.03.26.17.18.26;	author kemnitz;	state Exp;
branches;
next	1.7;

1.7
date	91.02.26.19.27.11;	author cimarron;	state Exp;
branches;
next	1.6;

1.6
date	90.09.12.17.57.02;	author cimarron;	state Exp;
branches;
next	1.5;

1.5
date	90.08.17.08.52.09;	author cimarron;	state Exp;
branches;
next	1.4;

1.4
date	90.08.13.19.30.52;	author sp;	state Exp;
branches;
next	1.3;

1.3
date	90.08.08.08.20.32;	author cimarron;	state Exp;
branches;
next	1.2;

1.2
date	90.08.01.14.42.46;	author sp;	state Exp;
branches;
next	1.1;

1.1
date	90.06.18.16.16.44;	author cimarron;	state Version_2;
branches;
next	;


desc
@@


1.17
log
@who the @@#$% changed "smgr" to int2 and then didn't change
the initializers in the catalog..
@
text
@/* ----------------------------------------------------------------
 *   FILE
 *	pg_relation.h
 *
 *   DESCRIPTION
 *	definition of the system "relation" relation (pg_relation)
 *	along with the relation's initial contents.
 *
 *   NOTES
 *	``pg_relation'' is being replaced by ``pg_class''.  currently
 *	we are only changing the name in the catalogs but someday the
 *	code will be changed too. -cim 2/26/90
 *
 *	the genbki.sh script reads this file and generates .bki
 *	information from the DATA() statements.
 *
 *   IDENTIFICATION
 *	$Header: /faerie/aoki/postgres/src/backend/catalog/RCS/pg_relation.h,v 1.16 1993/07/16 19:01:01 avi Exp aoki $
 * ----------------------------------------------------------------
 */
#ifndef PgRelationIncluded
#define PgRelationIncluded 1	/* include this only once */

/* ----------------
 *	postgres.h contains the system type definintions and the
 *	CATALOG(), BOOTSTRAP and DATA() sugar words so this file
 *	can be read by both genbki.sh and the C compiler.
 * ----------------
 */
#include "tmp/postgres.h"
#include "utils/nabstime.h"

/* ----------------
 *	pg_relation definition.  cpp turns this into
 *	typedef struct FormData_pg_relation
 *
 *	Note: the #if 0, #endif around the BKI_BEGIN.. END block
 *	      below keeps cpp from seeing what is meant for the
 *	      genbki script: pg_relation is now called pg_class, but
 *	      only in the catalogs -cim 2/26/90
 * ----------------
 */
#if 0
BKI_BEGIN
#define pg_relation pg_class    
BKI_END    
#endif    

/* ----------------
 *	This structure is actually variable-length (the last attribute is
 *	a POSTGRES array).  Hence, sizeof(FormData_pg_relation) does not
 *	describe the fixed-length or actual size of the structure.
 *	FormData_pg_relation.relacl may not be correctly aligned, either,
 *	if aclitem and struct varlena don't align together.  Hence,
 *	you MUST use heap_getattr() to get the relacl field.
 * ----------------
 */
CATALOG(pg_relation) BOOTSTRAP {
     char16 	relname;
     oid 	relowner;
     oid 	relam;
     int4 	relpages;
     int4 	reltuples;
     dt 	relexpires;
     dt 	relpreserved;
     bool 	relhasindex;
     bool 	relisshared;
     char 	relkind;
     char 	relarch;
     int2 	relnatts;
     int2	relsmgr;
     int28 	relkey;
     oid8	relkeyop;
     aclitem	relacl[1];
} FormData_pg_relation;

/* ----------------
 *	Form_pg_relation corresponds to a pointer to a tuple with
 *	the format of pg_relation relation.
 * ----------------
 */
typedef FormData_pg_relation	*Form_pg_relation;

/* ----------------
 *	compiler constants for pg_relation
 * ----------------
 */
/* pg_relation is now called pg_class -cim 2/26/90 */
#define Name_pg_relation		"pg_class"


/* ----------------
 *	Natts_pg_relation_fixed is used to tell routines that insert new
 *	pg_class tuples (as opposed to replacing old ones) that there's no
 *	relacl field.
 * ----------------
 */
#define Natts_pg_relation_fixed		15
#define Natts_pg_relation		16
#define Anum_pg_relation_relname	1
#define Anum_pg_relation_relowner	2
#define Anum_pg_relation_relam		3
#define Anum_pg_relation_relpages	4
#define Anum_pg_relation_reltuples	5
#define Anum_pg_relation_relexpires	6
#define Anum_pg_relation_relpreserved	7
#define Anum_pg_relation_relhasindex	8
#define Anum_pg_relation_relisshared	9
#define Anum_pg_relation_relkind	10
#define Anum_pg_relation_relarch	11
#define Anum_pg_relation_relnatts	12
#define Anum_pg_relation_relsmgr	13
#define Anum_pg_relation_relkey		14
#define Anum_pg_relation_relkeyop	15
#define Anum_pg_relation_relacl		16

/* ----------------
 *	initial contents of pg_relation
 * ----------------
 */

DATA(insert OID =  71 (  pg_type           PGUID 0 0 0 0 0 f f r n 15 0 - - _null_ ));
DATA(insert OID =  88 (  pg_database       PGUID 0 0 0 0 0 f t r n 3 0 - - _null_ ));
DATA(insert OID =  76 (  pg_demon          PGUID 0 0 0 0 0 f t r n 4 0 - - _null_ ));
DATA(insert OID =  81 (  pg_proc           PGUID 0 0 0 0 0 f f r n 16 0 - - _null_ ));
DATA(insert OID =  82 (  pg_server         PGUID 0 0 0 0 0 f t r n 3 0 - - _null_ ));
DATA(insert OID =  86 (  pg_user           PGUID 0 0 0 0 0 f t r n 6 0 - - _null_ ));
DATA(insert OID =  75 (  pg_attribute      PGUID 0 0 0 0 0 f f r n 14 0 - - _null_ ));
/* pg_relation is now called pg_class -cim 2/26/90 */
DATA(insert OID =  83 (  pg_class          PGUID 0 0 0 0 0 f f r n 16 0 - - _null_ ));
    
DATA(insert OID =  80 (  pg_magic          PGUID 0 0 0 0 0 f t r n 2 0 - - _null_ ));
DATA(insert OID =  89 (  pg_defaults       PGUID 0 0 0 0 0 f t r n 2 0 - - _null_ ));
DATA(insert OID =  90 (  pg_variable       PGUID 0 0 0 0 0 f t s n 2 0 - - _null_ ));
DATA(insert OID =  99 (  pg_log            PGUID 0 0 0 0 0 f t s n 1 0 - - _null_ ));
DATA(insert OID = 100 (  pg_time           PGUID 0 0 0 0 0 f t s n 1 0 - - _null_ ));
DATA(insert OID =  87 (  pg_group          PGUID 0 0 0 0 0 f t s n 3 0 - - _null_ ));

#define RelOid_pg_type		71
#define RelOid_pg_database    	88   
#define RelOid_pg_demon       	76   
#define RelOid_pg_proc       	81   
#define RelOid_pg_server     	82   
#define RelOid_pg_user       	86   
#define RelOid_pg_group       	87
#define RelOid_pg_attribute  	75   
#define RelOid_pg_relation   	83   
#define RelOid_pg_magic   	80      
#define RelOid_pg_defaults  	89    
#define RelOid_pg_variable   	90   
#define RelOid_pg_log   	99       
#define RelOid_pg_time   	100      
    
/* ----------------
 *	XXX well known relation identifiers put here for now.
 *	these are obsolete, but they better match the above definitions.
 *	-cim 6/17/90
 * ----------------
 */
#define	AttributeRelationId	RelOid_pg_attribute
#define VariableRelationId	RelOid_pg_variable
    
/* ----------------
 *	old definition of RelationTupleForm
 * ----------------
 */
#ifndef RelationTupleForm_Defined
#define RelationTupleForm_Defined 1

typedef struct RelationTupleFormD {
	NameData	relname;
	ObjectId	relowner;
	ObjectId	relam;
	uint32		relpages;
	uint32		reltuples;
	AbsoluteTime	relexpires;
	RelativeTime	relpreserved;
	Boolean		relhasindex;
	Boolean		relisshared;
	char		relkind;
	char		relarch;
	AttributeNumber	relnatts;
	int2		relsmgr;
	AttributeNumber	relkey[8];
	ObjectId	relkeyop[8];
/*	LOCK	rellock; */
/*	SPQUEL	reldesc; */
} RelationTupleFormD;

typedef RelationTupleFormD	*RelationTupleForm;

#endif RelationTupleForm_Defined

/* ----------------
 *	old definition of struct relation
 * ----------------
 */
#ifndef struct_relation_Defined
#define struct_relation_Defined 1

struct	relation {
	char		relname[16];
	OID		relowner;
	OID		relam;
	uint32		relpages;
	uint32		reltuples;
	AbsoluteTime	relexpires;
	RelativeTime	relpreserved;
	Boolean		relhasindex;
	Boolean		relisshared;
	char		relkind;
	char		relarch;
	uint16		relnatts;
	int2		relsmgr;
	int16		relkey[8];
	OID		relkeyop[8];
/*	LOCK		rellock; */
/*	SPQUEL		reldesc; */
};

#endif struct_relation_Defined

    
/* ----------------
 *	old style compiler constants.  these are obsolete and
 *	should not be used -cim 6/17/90
 * ----------------
 */
#define RelationNameAttributeNumber \
    Anum_pg_relation_relname
#define RelationPagesAttributeNumber \
    Anum_pg_relation_relpages
#define RelationTuplesAttributeNumber \
    Anum_pg_relation_reltuples
#define	RelationExpiresAttributeNumber \
    Anum_pg_relation_relexpires
#define	RelationPreservedAttributeNumber \
    Anum_pg_relation_relpreserved
#define RelationHasIndexAttributeNumber \
    Anum_pg_relation_relhasindex
#define RelationStubAttributeNumber \
    Anum_pg_relation_relstub

#define RelationRelationNumberOfAttributes \
    Natts_pg_relation
    
#endif PgRelationIncluded
@


1.16
log
@time cleanup
@
text
@d18 1
a18 1
 *	$Header: /private/src/postgres/src/backend/catalog/RCS/pg_relation.h,v 1.15 1993/03/31 07:32:01 mao Exp avi $
d122 7
a128 7
DATA(insert OID =  71 (  pg_type           PGUID 0 0 0 0 0 f f r n 15 "magnetic disk" - - _null_ ));
DATA(insert OID =  88 (  pg_database       PGUID 0 0 0 0 0 f t r n 3 "magnetic disk" - - _null_ ));
DATA(insert OID =  76 (  pg_demon          PGUID 0 0 0 0 0 f t r n 4 "magnetic disk" - - _null_ ));
DATA(insert OID =  81 (  pg_proc           PGUID 0 0 0 0 0 f f r n 16 "magnetic disk" - - _null_ ));
DATA(insert OID =  82 (  pg_server         PGUID 0 0 0 0 0 f t r n 3 "magnetic disk" - - _null_ ));
DATA(insert OID =  86 (  pg_user           PGUID 0 0 0 0 0 f t r n 6 "magnetic disk" - - _null_ ));
DATA(insert OID =  75 (  pg_attribute      PGUID 0 0 0 0 0 f f r n 14 "magnetic disk" - - _null_ ));
d130 1
a130 1
DATA(insert OID =  83 (  pg_class          PGUID 0 0 0 0 0 f f r n 16 "magnetic disk" - - _null_ ));
d132 6
a137 6
DATA(insert OID =  80 (  pg_magic          PGUID 0 0 0 0 0 f t r n 2 "magnetic disk" - - _null_ ));
DATA(insert OID =  89 (  pg_defaults       PGUID 0 0 0 0 0 f t r n 2 "magnetic disk" - - _null_ ));
DATA(insert OID =  90 (  pg_variable       PGUID 0 0 0 0 0 f t s n 2 "magnetic disk" - - _null_ ));
DATA(insert OID =  99 (  pg_log            PGUID 0 0 0 0 0 f t s n 1 "magnetic disk" - - _null_ ));
DATA(insert OID = 100 (  pg_time           PGUID 0 0 0 0 0 f t s n 1 "magnetic disk" - - _null_ ));
DATA(insert OID =  87 (  pg_group          PGUID 0 0 0 0 0 f t s n 3 "magnetic disk" - - _null_ ));
@


1.15
log
@relnatts was wrong for pg_class, pg_attribute.
@
text
@d18 1
a18 1
 *	$Header: /private/src/postgres/src/backend/catalog/RCS/pg_relation.h,v 1.14 1992/12/19 01:38:45 aoki Exp mao $
d31 1
d176 2
a177 2
	ABSTIME		relexpires;
	RELTIME		relpreserved;
d202 17
a218 17
	char	relname[16];
	OID	relowner;
	OID	relam;
	uint32	relpages;
	uint32	reltuples;
	ABSTIME	relexpires;
	RELTIME	relpreserved;
	Boolean	relhasindex;
	Boolean	relisshared;
	char	relkind;
	char	relarch;
	uint16	relnatts;
	int2	relsmgr;
	int16	relkey[8];
	OID	relkeyop[8];
/*	LOCK	rellock; */
/*	SPQUEL	reldesc; */
@


1.14
log
@second checkin for acls and other stuff
@
text
@d18 1
a18 1
 *	$Header: /home2/aoki/postgres/src/lib/H/catalog/pg_relation.h,v 1.1 1992/12/09 21:55:52 aoki Exp aoki $
d127 1
a127 1
DATA(insert OID =  75 (  pg_attribute      PGUID 0 0 0 0 0 f f r n 13 "magnetic disk" - - _null_ ));
d129 1
a129 1
DATA(insert OID =  83 (  pg_class          PGUID 0 0 0 0 0 f f r n 15 "magnetic disk" - - _null_ ));
@


1.13
log
@initial load of stuff for ACLs
@
text
@d18 1
a18 1
 *	$Header: /usr/local/dev/postgres/newtree/src/backend/catalog/RCS/pg_relation.h,v 1.12 1992/07/15 22:14:02 mao Exp $
d47 10
a56 1
    
d73 1
d90 9
a98 1
#define Natts_pg_relation		15
d114 1
d121 7
a127 7
DATA(insert OID =  71 (  pg_type           PGUID 0 0 0 0 0 f f r n 15 "magnetic disk" - - ));
DATA(insert OID =  88 (  pg_database       PGUID 0 0 0 0 0 f t r n 3 "magnetic disk" - - ));
DATA(insert OID =  76 (  pg_demon          PGUID 0 0 0 0 0 f t r n 4 "magnetic disk" - - ));
DATA(insert OID =  81 (  pg_proc           PGUID 0 0 0 0 0 f f r n 16 "magnetic disk" - - ));
DATA(insert OID =  82 (  pg_server         PGUID 0 0 0 0 0 f t r n 3 "magnetic disk" - - ));
DATA(insert OID =  86 (  pg_user           PGUID 0 0 0 0 0 f t r n 6 "magnetic disk" - - ));
DATA(insert OID =  75 (  pg_attribute      PGUID 0 0 0 0 0 f f r n 13 "magnetic disk" - - ));
d129 1
a129 1
DATA(insert OID =  83 (  pg_class          PGUID 0 0 0 0 0 f f r n 15 "magnetic disk" - - ));
d131 6
a136 5
DATA(insert OID =  80 (  pg_magic          PGUID 0 0 0 0 0 f t r n 2 "magnetic disk" - - ));
DATA(insert OID =  89 (  pg_defaults       PGUID 0 0 0 0 0 f t r n 2 "magnetic disk" - - ));
DATA(insert OID =  90 (  pg_variable       PGUID 0 0 0 0 0 f t s n 2 "magnetic disk" - - ));
DATA(insert OID =  99 (  pg_log            PGUID 0 0 0 0 0 f t s n 1 "magnetic disk" - - ));
DATA(insert OID = 100 (  pg_time           PGUID 0 0 0 0 0 f t s n 1 "magnetic disk" - - ));
d144 1
@


1.12
log
@att count for pg_proc was wrong
@
text
@d18 1
a18 1
 *	$Header: /private/mao/postgres/src/lib/H/catalog/RCS/pg_relation.h,v 1.11 1991/09/08 16:22:33 glass Exp mao $
d102 7
a108 7
DATA(insert OID =  71 (  pg_type           6 0 0 0 0 0 f f r n 15 "magnetic disk" - - ));
DATA(insert OID =  88 (  pg_database       6 0 0 0 0 0 f t r n 3 "magnetic disk" - - ));
DATA(insert OID =  76 (  pg_demon          6 0 0 0 0 0 f t r n 4 "magnetic disk" - - ));
DATA(insert OID =  81 (  pg_proc           6 0 0 0 0 0 f f r n 16 "magnetic disk" - - ));
DATA(insert OID =  82 (  pg_server         6 0 0 0 0 0 f t r n 3 "magnetic disk" - - ));
DATA(insert OID =  86 (  pg_user           6 0 0 0 0 0 f t r n 6 "magnetic disk" - - ));
DATA(insert OID =  75 (  pg_attribute      6 0 0 0 0 0 f f r n 13 "magnetic disk" - - ));
d110 1
a110 1
DATA(insert OID =  83 (  pg_class          6 0 0 0 0 0 f f r n 15 "magnetic disk" - - ));
d112 5
a116 5
DATA(insert OID =  80 (  pg_magic          6 0 0 0 0 0 f t r n 2 "magnetic disk" - - ));
DATA(insert OID =  89 (  pg_defaults       6 0 0 0 0 0 f t r n 2 "magnetic disk" - - ));
DATA(insert OID =  90 (  pg_variable       6 0 0 0 0 0 f t s n 2 "magnetic disk" - - ));
DATA(insert OID =  99 (  pg_log            6 0 0 0 0 0 f t s n 1 "magnetic disk" - - ));
DATA(insert OID = 100 (  pg_time           6 0 0 0 0 0 f t s n 1 "magnetic disk" - - ));
@


1.11
log
@initial postquel function checkin
@
text
@d18 1
a18 1
 *	$Header: RCS/pg_relation.h,v 1.10 91/08/15 17:42:33 caetta Exp Locker: glass $
d105 1
a105 1
DATA(insert OID =  81 (  pg_proc           6 0 0 0 0 0 f f r n 11 "magnetic disk" - - ));
@


1.10
log
@from aggregates...
@
text
@d18 1
a18 1
 *	$Header: lib/H/catalog/RCS/pg_relation.h,v 1.9 91/07/03 00:45:58 mao Exp Locker: caetta $
d105 1
a105 1
DATA(insert OID =  81 (  pg_proc           6 0 0 0 0 0 f f r n 10 "magnetic disk" - - ));
@


1.9
log
@add support for multiple storage managers
@
text
@d18 1
a18 1
 *	$Header: /users/mao/postgres/src/lib/H/catalog/RCS/pg_relation.h,v 1.8 1991/03/26 17:18:26 kemnitz Exp mao $
a108 1
    
@


1.8
log
@fixed some stuff for pg_type
@
text
@d18 1
a18 1
 *	$Header: RCS/pg_relation.h,v 1.7 91/02/26 19:27:11 cimarron Exp Locker: kemnitz $
d61 1
d80 1
a80 1
#define Natts_pg_relation		14
d93 3
a95 2
#define Anum_pg_relation_relkey		13
#define Anum_pg_relation_relkeyop	14
d102 7
a108 7
DATA(insert OID =  71 (  pg_type           6 0 0 0 0 0 f f r n 15 - - ));
DATA(insert OID =  88 (  pg_database       6 0 0 0 0 0 f t r n 3 - - ));
DATA(insert OID =  76 (  pg_demon          6 0 0 0 0 0 f t r n 4 - - ));
DATA(insert OID =  81 (  pg_proc           6 0 0 0 0 0 f f r n 10 - - ));
DATA(insert OID =  82 (  pg_server         6 0 0 0 0 0 f t r n 3 - - ));
DATA(insert OID =  86 (  pg_user           6 0 0 0 0 0 f t r n 6 - - ));
DATA(insert OID =  75 (  pg_attribute      6 0 0 0 0 0 f f r n 13 - - ));
d111 1
a111 1
DATA(insert OID =  83 (  pg_class          6 0 0 0 0 0 f f r n 14 - - ));
d113 5
a117 5
DATA(insert OID =  80 (  pg_magic          6 0 0 0 0 0 f t r n 2 - - ));
DATA(insert OID =  89 (  pg_defaults       6 0 0 0 0 0 f t r n 2 - - ));
DATA(insert OID =  90 (  pg_variable       6 0 0 0 0 0 f t s n 2 - - ));
DATA(insert OID =  99 (  pg_log            6 0 0 0 0 0 f t s n 1 - - ));
DATA(insert OID = 100 (  pg_time           6 0 0 0 0 0 f t s n 1 - - ));
d162 1
d193 1
@


1.7
log
@libpq changes for PQfn and renaming pg_relation to pg_class in catalogs
@
text
@d18 1
a18 1
 *	$Header: RCS/pg_relation.h,v 1.6 90/09/12 17:57:02 cimarron Exp Locker: cimarron $
d100 1
a100 1
DATA(insert OID =  71 (  pg_type           6 0 0 0 0 0 f f r n 14 - - ));
d106 1
a106 1
DATA(insert OID =  75 (  pg_attribute      6 0 0 0 0 0 f f r n 12 - - ));
@


1.6
log
@added several RelOid_ macros to islolate relation oids to this file.
@
text
@d10 4
d18 1
a18 1
 *	$Header: RCS/pg_relation.h,v 1.5 90/08/17 08:52:09 cimarron Exp Locker: cimarron $
d35 5
d42 6
d76 3
a78 1
#define Name_pg_relation		"pg_relation"
d107 4
a110 1
DATA(insert OID =  83 (  pg_relation       6 0 0 0 0 0 f f r n 14 - - ));
@


1.5
log
@added pathnames to #include statements
@
text
@d14 1
a14 1
 *	$Header: RCS/pg_relation.h,v 1.4 90/08/13 19:30:52 sp Exp Locker: cimarron $
d97 14
d117 2
a118 2
#define	AttributeRelationId	75
#define VariableRelationId	90
@


1.4
log
@`pg_relation.relstub' does not exist anymore...
@
text
@d14 1
a14 1
 *	$Header: RCS/pg_relation.h,v 1.3 90/08/08 08:20:32 cimarron Exp $
d26 1
a26 1
#include "postgres.h"
@


1.3
log
@reorganized some header files
@
text
@d14 1
a14 1
 *	$Header: RCS/pg_relation.h,v 1.2 90/08/01 14:42:46 sp Exp Locker: cimarron $
a47 1
     stub	relstub;
d62 1
a62 1
#define Natts_pg_relation		15
a76 1
#define Anum_pg_relation_relstub	15
d83 13
a95 13
DATA(insert OID =  71 (  pg_type           6 0 0 0 0 0 f f r n 14 - - - ));
DATA(insert OID =  88 (  pg_database       6 0 0 0 0 0 f t r n 3 - - - ));
DATA(insert OID =  76 (  pg_demon          6 0 0 0 0 0 f t r n 4 - - - ));
DATA(insert OID =  81 (  pg_proc           6 0 0 0 0 0 f f r n 10 - - - ));
DATA(insert OID =  82 (  pg_server         6 0 0 0 0 0 f t r n 3 - - - ));
DATA(insert OID =  86 (  pg_user           6 0 0 0 0 0 f t r n 6 - - - ));
DATA(insert OID =  75 (  pg_attribute      6 0 0 0 0 0 f f r n 12 - - - ));
DATA(insert OID =  83 (  pg_relation       6 0 0 0 0 0 f f r n 15 - - - ));
DATA(insert OID =  80 (  pg_magic          6 0 0 0 0 0 f t r n 2 - - - ));
DATA(insert OID =  89 (  pg_defaults       6 0 0 0 0 0 f t r n 2 - - - ));
DATA(insert OID =  90 (  pg_variable       6 0 0 0 0 0 f t s n 2 - - - ));
DATA(insert OID =  99 (  pg_log            6 0 0 0 0 0 f t s n 1 - - - ));
DATA(insert OID = 100 (  pg_time           6 0 0 0 0 0 f t s n 1 - - - ));
a127 1
	struct varlena	relstub;
a157 1
	struct varlena	relstub;
@


1.2
log
@New attribute for pg_relation: relstub
@
text
@d14 1
a14 1
 *	$Header: RCS/pg_relation.h,v 1.1 90/06/18 16:16:44 cimarron Version_2 $
d21 3
a23 3
 *	catmacros.h defines the CATALOG(), BOOTSTRAP and
 *	DATA() sugar words so this file can be read by both
 *	genbki.sh and the C compiler.
d26 1
a26 1
#include "catalog/catmacros.h"
d186 1
a186 1
#define e RelationStubAttributeNumber \
@


1.1
log
@Initial version.  The new setup is for lib/H/catalog to contain
a pg_xxx.h file for each pg_xxx database in the system catalogs.
This .h file contains CATALOG() and DATA() statements used to
generate typedefs for the catalog tuple structures as well as
initialization scripts for createdb.
@
text
@d14 1
a14 1
 *	$Header$
d48 1
d63 1
a63 1
#define Natts_pg_relation		14
d78 1
d85 13
a97 13
DATA(insert OID =  71 (  pg_type           6 0 0 0 0 0 f f r n 14 - - ));
DATA(insert OID =  88 (  pg_database       6 0 0 0 0 0 f t r n 3 - - ));
DATA(insert OID =  76 (  pg_demon          6 0 0 0 0 0 f t r n 4 - - ));
DATA(insert OID =  81 (  pg_proc           6 0 0 0 0 0 f f r n 10 - - ));
DATA(insert OID =  82 (  pg_server         6 0 0 0 0 0 f t r n 3 - - ));
DATA(insert OID =  86 (  pg_user           6 0 0 0 0 0 f t r n 6 - - ));
DATA(insert OID =  75 (  pg_attribute      6 0 0 0 0 0 f f r n 12 - - ));
DATA(insert OID =  83 (  pg_relation       6 0 0 0 0 0 f f r n 14 - - ));
DATA(insert OID =  80 (  pg_magic          6 0 0 0 0 0 f t r n 2 - - ));
DATA(insert OID =  89 (  pg_defaults       6 0 0 0 0 0 f t r n 2 - - ));
DATA(insert OID =  90 (  pg_variable       6 0 0 0 0 0 f t s n 2 - - ));
DATA(insert OID =  99 (  pg_log            6 0 0 0 0 0 f t s n 1 - - ));
DATA(insert OID = 100 (  pg_time           6 0 0 0 0 0 f t s n 1 - - ));
d130 1
d161 1
d186 2
@
