1997-08-21 03:37:55 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* pg_attrdef.h
|
2002-07-15 18:33:32 +02:00
|
|
|
* definition of the system "attribute defaults" relation (pg_attrdef)
|
|
|
|
* along with the relation's initial contents.
|
1997-08-21 03:37:55 +02:00
|
|
|
*
|
|
|
|
*
|
2010-01-02 17:58:17 +01:00
|
|
|
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1997-08-21 03:37:55 +02:00
|
|
|
*
|
2010-01-05 02:06:57 +01:00
|
|
|
* $PostgreSQL: pgsql/src/include/catalog/pg_attrdef.h,v 1.26 2010/01/05 01:06:56 tgl Exp $
|
2002-07-15 18:33:32 +02:00
|
|
|
*
|
1997-08-21 03:37:55 +02:00
|
|
|
* NOTES
|
2010-01-05 02:06:57 +01:00
|
|
|
* the genbki.pl script reads this file and generates .bki
|
1997-09-07 07:04:48 +02:00
|
|
|
* information from the DATA() statements.
|
1997-08-21 03:37:55 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_ATTRDEF_H
|
|
|
|
#define PG_ATTRDEF_H
|
|
|
|
|
2008-03-27 04:57:34 +01:00
|
|
|
#include "catalog/genbki.h"
|
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
|
|
|
*/
|
2005-04-14 03:38:22 +02:00
|
|
|
#define AttrDefaultRelationId 2604
|
|
|
|
|
|
|
|
CATALOG(pg_attrdef,2604)
|
1997-09-07 07:04:48 +02:00
|
|
|
{
|
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
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* PG_ATTRDEF_H */
|