1997-08-21 03:37:55 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* pg_attrdef.h--
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
|
|
|
* NOTES
|
1997-09-07 07:04:48 +02:00
|
|
|
* the genbki.sh script reads this file and generates .bki
|
|
|
|
* information from the DATA() statements.
|
1997-08-21 03:37:55 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_ATTRDEF_H
|
|
|
|
#define PG_ATTRDEF_H
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* 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.
|
1997-08-21 03:37:55 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_attrdef definition. cpp turns this into
|
|
|
|
* typedef struct FormData_pg_attrdef
|
1997-08-21 03:37:55 +02:00
|
|
|
* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
*/
|
|
|
|
CATALOG(pg_attrdef) BOOTSTRAP
|
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
Oid adrelid;
|
|
|
|
int2 adnum;
|
|
|
|
text adbin;
|
|
|
|
text adsrc;
|
1997-08-21 03:37:55 +02:00
|
|
|
} FormData_pg_attrdef;
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* Form_pg_attrdef corresponds to a pointer to a tuple with
|
|
|
|
* the format of pg_attrdef relation.
|
1997-08-21 03:37:55 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef FormData_pg_attrdef *Form_pg_attrdef;
|
1997-08-21 03:37:55 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* compiler constants for pg_attrdef
|
1997-08-21 03:37:55 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#define Natts_pg_attrdef 4
|
|
|
|
#define Anum_pg_attrdef_adrelid 1
|
|
|
|
#define Anum_pg_attrdef_adnum 2
|
|
|
|
#define Anum_pg_attrdef_adbin 3
|
|
|
|
#define Anum_pg_attrdef_adsrc 4
|
1997-08-21 03:37:55 +02:00
|
|
|
|
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* PG_ATTRDEF_H */
|