1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* pg_attribute.h--
|
1997-09-07 07:04:48 +02:00
|
|
|
* definition of the system "attribute" relation (pg_attribute)
|
|
|
|
* along with the relation's initial contents.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1998-08-26 18:43:54 +02:00
|
|
|
* $Id: pg_attribute.h,v 1.38 1998/08/26 16:43:48 momjian Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
* NOTES
|
1997-09-07 07:04:48 +02:00
|
|
|
* the genbki.sh script reads this file and generates .bki
|
|
|
|
* information from the DATA() statements.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
1997-09-07 07:04:48 +02:00
|
|
|
* utils/cache/relcache.c requires some hard-coded tuple descriptors
|
|
|
|
* for some of the system catalogs so if the schema for any of
|
|
|
|
* these changes, be sure and change the appropriate Schema_xxx
|
|
|
|
* macros! -cim 2/5/91
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_ATTRIBUTE_H
|
|
|
|
#define PG_ATTRIBUTE_H
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* ----------------
|
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.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_attribute definition. cpp turns this into
|
|
|
|
* typedef struct FormData_pg_attribute
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
1997-09-07 07:04:48 +02:00
|
|
|
* If you change the following, make sure you change the structs for
|
|
|
|
* system attributes in heap.c and index.c also.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
CATALOG(pg_attribute) BOOTSTRAP
|
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
Oid attrelid;
|
|
|
|
NameData attname;
|
|
|
|
Oid atttypid;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* atttypid is the OID of the instance in Catalog Class pg_type that
|
|
|
|
* defines the data type of this attribute (e.g. int4). Information
|
|
|
|
* in that instance is redundant with the attlen, attbyval, and
|
|
|
|
* attalign attributes of this instance, so they had better match or
|
|
|
|
* Postgres will fail.
|
|
|
|
*/
|
1997-09-08 04:41:22 +02:00
|
|
|
float4 attdisbursion;
|
|
|
|
int2 attlen;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* attlen is a copy of the typlen field from pg_type for this
|
|
|
|
* attribute. See atttypid above. See struct TypeTupleFormData for
|
|
|
|
* definition.
|
|
|
|
*/
|
1997-09-08 04:41:22 +02:00
|
|
|
int2 attnum;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* attnum is the "attribute number" for the attribute: A value that
|
|
|
|
* uniquely identifies this attribute within its class. For user
|
|
|
|
* attributes, Attribute numbers are greater than 0 and not greater
|
|
|
|
* than the number of attributes in the class. I.e. if the Class
|
|
|
|
* pg_class says that Class XYZ has 10 attributes, then the user
|
|
|
|
* attribute numbers in Class pg_attribute must be 1-10.
|
|
|
|
*
|
|
|
|
* System attributes have attribute numbers less than 0 that are unique
|
|
|
|
* within the class, but not constrained to any particular range.
|
|
|
|
*
|
|
|
|
* Note that (attnum - 1) is often used as the index to an array.
|
|
|
|
*/
|
1997-09-08 04:41:22 +02:00
|
|
|
int4 attnelems;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1998-01-17 00:21:07 +01:00
|
|
|
int4 attcacheoff;
|
1998-02-26 05:46:47 +01:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
/*
|
|
|
|
* fastgetattr() uses attcacheoff to cache byte offsets of attributes
|
|
|
|
* in heap tuples. The data actually stored in pg_attribute (-1)
|
|
|
|
* indicates no cached value. But when we copy these tuples into a
|
|
|
|
* tuple descriptor, we may then update attcacheoff in the copies.
|
|
|
|
* This speeds up the attribute walking process.
|
|
|
|
*/
|
|
|
|
|
1998-07-12 23:29:40 +02:00
|
|
|
int4 atttypmod;
|
1998-02-26 05:46:47 +01:00
|
|
|
|
1998-01-17 00:21:07 +01:00
|
|
|
/*
|
|
|
|
* atttypmod records type-specific modifications supplied at table
|
1998-02-26 05:46:47 +01:00
|
|
|
* creation time, and passes it to input and output functions as the
|
|
|
|
* third argument.
|
1998-01-17 00:21:07 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
bool attbyval;
|
1998-02-26 05:46:47 +01:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
/*
|
|
|
|
* attbyval is a copy of the typbyval field from pg_type for this
|
|
|
|
* attribute. See atttypid above. See struct TypeTupleFormData for
|
|
|
|
* definition.
|
|
|
|
*/
|
1997-09-08 04:41:22 +02:00
|
|
|
bool attisset;
|
|
|
|
char attalign;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* attalign is a copy of the typalign field from pg_type for this
|
|
|
|
* attribute. See atttypid above. See struct TypeTupleFormData for
|
|
|
|
* definition.
|
|
|
|
*/
|
1997-09-08 04:41:22 +02:00
|
|
|
bool attnotnull;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
|
|
|
/* This flag represents the "NOT NULL" constraint */
|
1997-09-08 04:41:22 +02:00
|
|
|
bool atthasdef;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
|
|
|
/* Has DEFAULT value or not */
|
1996-08-28 03:59:28 +02:00
|
|
|
} FormData_pg_attribute;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* someone should figure out how to do this properly. (The problem is
|
|
|
|
* the size of the C struct is not the same as the size of the tuple.)
|
|
|
|
*/
|
|
|
|
#define ATTRIBUTE_TUPLE_SIZE \
|
1997-09-07 07:04:48 +02:00
|
|
|
(offsetof(FormData_pg_attribute,atthasdef) + sizeof(char))
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* Form_pg_attribute corresponds to a pointer to a tuple with
|
|
|
|
* the format of pg_attribute relation.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef FormData_pg_attribute *AttributeTupleForm;
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* compiler constants for pg_attribute
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
1998-01-17 00:21:07 +01:00
|
|
|
#define Natts_pg_attribute 14
|
1997-09-07 07:04:48 +02:00
|
|
|
#define Anum_pg_attribute_attrelid 1
|
|
|
|
#define Anum_pg_attribute_attname 2
|
|
|
|
#define Anum_pg_attribute_atttypid 3
|
|
|
|
#define Anum_pg_attribute_attdisbursion 4
|
|
|
|
#define Anum_pg_attribute_attlen 5
|
|
|
|
#define Anum_pg_attribute_attnum 6
|
|
|
|
#define Anum_pg_attribute_attnelems 7
|
1997-08-21 03:37:55 +02:00
|
|
|
#define Anum_pg_attribute_attcacheoff 8
|
1998-01-17 00:21:07 +01:00
|
|
|
#define Anum_pg_attribute_atttypmod 9
|
|
|
|
#define Anum_pg_attribute_attbyval 10
|
|
|
|
#define Anum_pg_attribute_attisset 11
|
|
|
|
#define Anum_pg_attribute_attalign 12
|
|
|
|
#define Anum_pg_attribute_attnotnull 13
|
|
|
|
#define Anum_pg_attribute_atthasdef 14
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* SCHEMA_ macros for declaring hardcoded tuple descriptors.
|
|
|
|
* these are used in utils/cache/relcache.c
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
#define SCHEMA_NAME(x) CppConcat(Name_,x)
|
|
|
|
#define SCHEMA_DESC(x) CppConcat(Desc_,x)
|
|
|
|
#define SCHEMA_NATTS(x) CppConcat(Natts_,x)
|
|
|
|
#define SCHEMA_DEF(x) \
|
1997-09-07 07:04:48 +02:00
|
|
|
FormData_pg_attribute \
|
|
|
|
SCHEMA_DESC(x) [ SCHEMA_NATTS(x) ] = \
|
|
|
|
{ \
|
|
|
|
CppConcat(Schema_,x) \
|
|
|
|
}
|
1996-08-28 03:59:28 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* initial contents of pg_attribute
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_type schema
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
#define Schema_pg_type \
|
1998-08-26 07:22:58 +02:00
|
|
|
{ 1247, {"typname"}, 19, 0, NAMEDATALEN, 1, 0, -1, -1, '\0', '\0', 'd', '\0', '\0' }, \
|
1998-08-11 20:28:49 +02:00
|
|
|
{ 1247, {"typowner"}, 23, 0, 4, 2, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
1998-03-04 19:41:08 +01:00
|
|
|
{ 1247, {"typlen"}, 21, 0, 2, 3, 0, -1, -1, '\001', '\0', 's', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typprtlen"}, 21, 0, 2, 4, 0, -1, -1, '\001', '\0', 's', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typbyval"}, 16, 0, 1, 5, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typtype"}, 18, 0, 1, 6, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typisdefined"}, 16, 0, 1, 7, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typdelim"}, 18, 0, 1, 8, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typrelid"}, 26, 0, 4, 9, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typelem"}, 26, 0, 4, 10, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typinput"}, 24, 0, 4, 11, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typoutput"}, 24, 0, 4, 12, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typreceive"}, 24, 0, 4, 13, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typsend"}, 24, 0, 4, 14, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typalign"}, 18, 0, 1, 15, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1247, {"typdefault"}, 25, 0, -1, 16, 0, -1, -1, '\0' , '\0', 'i', '\0', '\0' }
|
1998-02-07 07:11:56 +01:00
|
|
|
|
1998-08-26 07:22:58 +02:00
|
|
|
DATA(insert OID = 0 ( 1247 typname 19 0 NAMEDATALEN 1 0 -1 -1 f f d f f));
|
1998-08-11 20:28:49 +02:00
|
|
|
DATA(insert OID = 0 ( 1247 typowner 23 0 4 2 0 -1 -1 t f i f f));
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1247 typlen 21 0 2 3 0 -1 -1 t f s f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typprtlen 21 0 2 4 0 -1 -1 t f s f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typbyval 16 0 1 5 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typtype 18 0 1 6 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typisdefined 16 0 1 7 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typdelim 18 0 1 8 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typrelid 26 0 4 9 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typelem 26 0 4 10 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typinput 24 0 4 11 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typoutput 24 0 4 12 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typreceive 24 0 4 13 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typsend 24 0 4 14 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typalign 18 0 1 15 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 typdefault 25 0 -1 16 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 ctid 27 0 6 -1 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 oid 26 0 4 -2 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 xmin 28 0 4 -3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 cmin 29 0 4 -4 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 xmax 28 0 4 -5 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1247 cmax 29 0 4 -6 0 -1 -1 t f i f f));
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_database
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1998-08-26 07:22:58 +02:00
|
|
|
DATA(insert OID = 0 ( 1262 datname 19 0 NAMEDATALEN 1 0 -1 -1 f f d f f));
|
|
|
|
DATA(insert OID = 0 ( 1262 datdba 23 0 4 2 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1262 encoding 23 0 4 3 0 -1 -1 t f i f f));
|
1998-08-24 03:14:24 +02:00
|
|
|
DATA(insert OID = 0 ( 1262 datpath 25 0 -1 4 0 -1 -1 f f i f f));
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1262 ctid 27 0 6 -1 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1262 oid 26 0 4 -2 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1262 xmin 28 0 4 -3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1262 cmin 29 0 4 -4 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1262 xmax 28 0 4 -5 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1262 cmax 29 0 4 -6 0 -1 -1 t f i f f));
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_proc
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
#define Schema_pg_proc \
|
1998-08-26 07:22:58 +02:00
|
|
|
{ 1255, {"proname"}, 19, 0, NAMEDATALEN, 1, 0, -1, -1, '\0', '\0', 'd', '\0', '\0' }, \
|
1998-08-11 20:28:49 +02:00
|
|
|
{ 1255, {"proowner"}, 23, 0, 4, 2, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
1998-03-04 19:41:08 +01:00
|
|
|
{ 1255, {"prolang"}, 26, 0, 4, 3, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1255, {"proisinh"}, 16, 0, 1, 4, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1255, {"proistrusted"}, 16, 0, 1, 5, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1255, {"proiscachable"}, 16, 0, 1, 6, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1255, {"pronargs"}, 21, 0, 2, 7, 0, -1, -1, '\001', '\0', 's', '\0', '\0' }, \
|
|
|
|
{ 1255, {"proretset"}, 16, 0, 1, 8, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1255, {"prorettype"}, 26, 0, 4, 9, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1255, {"proargtypes"}, 30, 0, 32, 10, 0, -1, -1, '\0', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1255, {"probyte_pct"}, 23, 0, 4, 11, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1255, {"properbyte_cpu"}, 23, 0, 4, 12, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1255, {"propercall_cpu"}, 23, 0, 4, 13, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1255, {"prooutin_ratio"}, 23, 0, 4, 14, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1255, {"prosrc"}, 25, 0, -1, 15, 0, -1, -1, '\0', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1255, {"probin"}, 17, 0, -1, 16, 0, -1, -1, '\0', '\0', 'i', '\0', '\0' }
|
1998-02-07 07:11:56 +01:00
|
|
|
|
1998-08-26 07:22:58 +02:00
|
|
|
DATA(insert OID = 0 ( 1255 proname 19 0 NAMEDATALEN 1 0 -1 -1 f f d f f));
|
1998-08-11 20:28:49 +02:00
|
|
|
DATA(insert OID = 0 ( 1255 proowner 23 0 4 2 0 -1 -1 t f i f f));
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1255 prolang 26 0 4 3 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 proisinh 16 0 1 4 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 proistrusted 16 0 1 5 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 proiscachable 16 0 1 6 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 pronargs 21 0 2 7 0 -1 -1 t f s f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 proretset 16 0 1 8 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 prorettype 26 0 4 9 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 proargtypes 30 0 32 10 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 probyte_pct 23 0 4 11 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 properbyte_cpu 23 0 4 12 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 propercall_cpu 23 0 4 13 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 prooutin_ratio 23 0 4 14 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 prosrc 25 0 -1 15 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 probin 17 0 -1 16 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 ctid 27 0 6 -1 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 oid 26 0 4 -2 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 xmin 28 0 4 -3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 cmin 29 0 4 -4 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 xmax 28 0 4 -5 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1255 cmax 29 0 4 -6 0 -1 -1 t f i f f));
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* ----------------
|
1998-02-25 14:09:49 +01:00
|
|
|
* pg_shadow
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1998-08-26 07:22:58 +02:00
|
|
|
DATA(insert OID = 0 ( 1260 usename 19 0 NAMEDATALEN 1 0 -1 -1 f f d f f));
|
|
|
|
DATA(insert OID = 0 ( 1260 usesysid 23 0 4 2 0 -1 -1 t f i f f));
|
1998-02-26 05:46:47 +01:00
|
|
|
DATA(insert OID = 0 ( 1260 usecreatedb 16 0 1 3 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1260 usetrace 16 0 1 4 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1260 usesuper 16 0 1 5 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1260 usecatupd 16 0 1 6 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1260 passwd 25 0 -1 7 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1260 valuntil 702 0 4 8 0 -1 -1 t f i f f));
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1260 ctid 27 0 6 -1 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1260 oid 26 0 4 -2 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1260 xmin 28 0 4 -3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1260 cmin 29 0 4 -4 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1260 xmax 28 0 4 -5 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1260 cmax 29 0 4 -6 0 -1 -1 t f i f f));
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_group
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1998-08-26 07:22:58 +02:00
|
|
|
DATA(insert OID = 0 ( 1261 groname 19 0 NAMEDATALEN 1 0 -1 -1 f f d f f));
|
|
|
|
DATA(insert OID = 0 ( 1261 grosysid 23 0 4 2 0 -1 -1 t f i f f));
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1261 grolist 1007 0 -1 3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1261 ctid 27 0 6 -1 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1261 oid 26 0 4 -2 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1261 xmin 28 0 4 -3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1261 cmin 29 0 4 -4 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1261 xmax 28 0 4 -5 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1261 cmax 29 0 4 -6 0 -1 -1 t f i f f));
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_attribute
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
#define Schema_pg_attribute \
|
1998-03-04 19:41:08 +01:00
|
|
|
{ 1249, {"attrelid"}, 26, 0, 4, 1, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
1998-08-26 07:22:58 +02:00
|
|
|
{ 1249, {"attname"}, 19, 0, NAMEDATALEN, 2, 0, -1, -1, '\0', '\0', 'd ', '\0', '\0' }, \
|
1998-03-04 19:41:08 +01:00
|
|
|
{ 1249, {"atttypid"}, 26, 0, 4, 3, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1249, {"attdisbursion"}, 700, 0, 4, 4, 0, -1, -1, '\0', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1249, {"attlen"}, 21, 0, 2, 5, 0, -1, -1, '\001', '\0', 's', '\0', '\0' }, \
|
|
|
|
{ 1249, {"attnum"}, 21, 0, 2, 6, 0, -1, -1, '\001', '\0', 's', '\0', '\0' }, \
|
|
|
|
{ 1249, {"attnelems"}, 23, 0, 4, 7, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1249, {"attcacheoff"}, 23, 0, 4, 8, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
1998-08-26 07:51:24 +02:00
|
|
|
{ 1249, {"atttypmod"}, 23, 0, 4, 9, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
1998-03-04 19:41:08 +01:00
|
|
|
{ 1249, {"attbyval"}, 16, 0, 1, 10, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1249, {"attisset"}, 16, 0, 1, 11, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1249, {"attalign"}, 18, 0, 1, 12, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
1998-03-07 05:49:57 +01:00
|
|
|
{ 1249, {"attnotnull"}, 16, 0, 1, 13, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1249, {"atthasdef"}, 16, 0, 1, 14, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }
|
1998-02-07 07:11:56 +01:00
|
|
|
|
|
|
|
DATA(insert OID = 0 ( 1249 attrelid 26 0 4 1 0 -1 -1 t f i f f));
|
1998-08-26 07:22:58 +02:00
|
|
|
DATA(insert OID = 0 ( 1249 attname 19 0 NAMEDATALEN 2 0 -1 -1 f f d f f));
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1249 atttypid 26 0 4 3 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 attdisbursion 700 0 4 4 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 attlen 21 0 2 5 0 -1 -1 t f s f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 attnum 21 0 2 6 0 -1 -1 t f s f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 attnelems 23 0 4 7 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 attcacheoff 23 0 4 8 0 -1 -1 t f i f f));
|
1998-08-26 18:43:54 +02:00
|
|
|
DATA(insert OID = 0 ( 1249 atttypmod 23 0 4 9 0 -1 -1 t f i f f));
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1249 attbyval 16 0 1 10 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 attisset 16 0 1 11 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 attalign 18 0 1 12 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 attnotnull 16 0 1 13 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 atthasdef 16 0 1 14 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 ctid 27 0 6 -1 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 oid 26 0 4 -2 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 xmin 28 0 4 -3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 cmin 29 0 4 -4 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 xmax 28 0 4 -5 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1249 cmax 29 0 4 -6 0 -1 -1 t f i f f));
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_class
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
#define Schema_pg_class \
|
1998-08-26 07:22:58 +02:00
|
|
|
{ 1259, {"relname"}, 19, 0, NAMEDATALEN, 1, 0, -1, -1, '\0', '\0', 'd', '\0', '\0' }, \
|
1998-03-04 19:41:08 +01:00
|
|
|
{ 1259, {"reltype"}, 26, 0, 4, 2, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
1998-08-11 20:28:49 +02:00
|
|
|
{ 1259, {"relowner"}, 23, 0, 4, 3, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
1998-03-04 19:41:08 +01:00
|
|
|
{ 1259, {"relam"}, 26, 0, 4, 4, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1259, {"relpages"}, 23, 0, 4, 5, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1259, {"reltuples"}, 23, 0, 4, 6, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }, \
|
|
|
|
{ 1259, {"relhasindex"}, 16, 0, 1, 7, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1259, {"relisshared"}, 16, 0, 1, 8, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1259, {"relkind"}, 18, 0, 1, 9, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1259, {"relnatts"}, 21, 0, 2, 10, 0, -1, -1, '\001', '\0', 's', '\0', '\0' }, \
|
|
|
|
{ 1259, {"relchecks"}, 21, 0, 2, 11, 0, -1, -1, '\001', '\0', 's', '\0', '\0' }, \
|
|
|
|
{ 1259, {"reltriggers"}, 21, 0, 2, 12, 0, -1, -1, '\001', '\0', 's', '\0', '\0' }, \
|
|
|
|
{ 1259, {"relhasrules"}, 16, 0, 1, 13, 0, -1, -1, '\001', '\0', 'c', '\0', '\0' }, \
|
|
|
|
{ 1259, {"relacl"}, 1034, 0, -1, 14, 0, -1, -1, '\0', '\0', 'i', '\0', '\0' }
|
1998-02-07 07:11:56 +01:00
|
|
|
|
1998-08-26 07:22:58 +02:00
|
|
|
DATA(insert OID = 0 ( 1259 relname 19 0 NAMEDATALEN 1 0 -1 -1 f f d f f));
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1259 reltype 26 0 4 2 0 -1 -1 t f i f f));
|
1998-08-11 20:28:49 +02:00
|
|
|
DATA(insert OID = 0 ( 1259 relowner 23 0 4 3 0 -1 -1 t f i f f));
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1259 relam 26 0 4 4 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 relpages 23 0 4 5 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 reltuples 23 0 4 6 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 relhasindex 16 0 1 7 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 relisshared 16 0 1 8 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 relkind 18 0 1 9 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 relnatts 21 0 2 10 0 -1 -1 t f s f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 relchecks 21 0 2 11 0 -1 -1 t f s f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 reltriggers 21 0 2 12 0 -1 -1 t f s f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 relhasrules 16 0 1 13 0 -1 -1 t f c f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 relacl 1034 0 -1 14 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 ctid 27 0 6 -1 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 oid 26 0 4 -2 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 xmin 28 0 4 -3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 cmin 29 0 4 -4 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 xmax 28 0 4 -5 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1259 cmax 29 0 4 -6 0 -1 -1 t f i f f));
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1997-08-21 03:37:55 +02:00
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_attrdef
|
1997-08-21 03:37:55 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1215 adrelid 26 0 4 1 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1215 adnum 21 0 2 2 0 -1 -1 t f s f f));
|
|
|
|
DATA(insert OID = 0 ( 1215 adbin 25 0 -1 3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1215 adsrc 25 0 -1 4 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1215 ctid 27 0 6 -1 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1215 oid 26 0 4 -2 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1215 xmin 28 0 4 -3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1215 cmin 29 0 4 -4 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1215 xmax 28 0 4 -5 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1215 cmax 29 0 4 -6 0 -1 -1 t f i f f));
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1997-08-21 03:37:55 +02:00
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_relcheck
|
1997-08-21 03:37:55 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1216 rcrelid 26 0 4 1 0 -1 -1 t f i f f));
|
1998-08-26 07:22:58 +02:00
|
|
|
DATA(insert OID = 0 ( 1216 rcname 19 0 NAMEDATALEN 2 0 -1 -1 f f d f f));
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1216 rcbin 25 0 -1 3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1216 rcsrc 25 0 -1 4 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1216 ctid 27 0 6 -1 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1216 oid 26 0 4 -2 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1216 xmin 28 0 4 -3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1216 cmin 29 0 4 -4 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1216 xmax 28 0 4 -5 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1216 cmax 29 0 4 -6 0 -1 -1 t f i f f));
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1997-08-31 11:55:24 +02:00
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_trigger
|
1997-08-31 11:55:24 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1219 tgrelid 26 0 4 1 0 -1 -1 t f i f f));
|
1998-08-26 07:22:58 +02:00
|
|
|
DATA(insert OID = 0 ( 1219 tgname 19 0 NAMEDATALEN 2 0 -1 -1 f f d f f));
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1219 tgfoid 26 0 4 3 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1219 tgtype 21 0 2 4 0 -1 -1 t f s f f));
|
|
|
|
DATA(insert OID = 0 ( 1219 tgnargs 21 0 2 5 0 -1 -1 t f s f f));
|
|
|
|
DATA(insert OID = 0 ( 1219 tgattr 22 0 16 6 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1219 tgargs 17 0 -1 7 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1219 ctid 27 0 6 -1 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1219 oid 26 0 4 -2 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1219 xmin 28 0 4 -3 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1219 cmin 29 0 4 -4 0 -1 -1 t f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1219 xmax 28 0 4 -5 0 -1 -1 f f i f f));
|
|
|
|
DATA(insert OID = 0 ( 1219 cmax 29 0 4 -6 0 -1 -1 t f i f f));
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_variable - this relation is modified by special purpose access
|
|
|
|
* method code. The following is garbage but is needed
|
|
|
|
* so that the reldesc code works properly.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
#define Schema_pg_variable \
|
1998-03-04 19:41:08 +01:00
|
|
|
{ 1264, {"varfoo"}, 26, 0, 4, 1, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1264 varfoo 26 0 4 1 0 -1 -1 t f i f f));
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_log - this relation is modified by special purpose access
|
|
|
|
* method code. The following is garbage but is needed
|
|
|
|
* so that the reldesc code works properly.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
#define Schema_pg_log \
|
1998-03-04 19:41:08 +01:00
|
|
|
{ 1269, {"logfoo"}, 26, 0, 4, 1, 0, -1, -1, '\001', '\0', 'i', '\0', '\0' }
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-02-07 07:11:56 +01:00
|
|
|
DATA(insert OID = 0 ( 1269 logfoo 26 0 4 1 0 -1 -1 t f i f f));
|
1997-09-07 07:04:48 +02:00
|
|
|
|
|
|
|
#endif /* PG_ATTRIBUTE_H */
|