diff options
| author | Marc G. Fournier <scrappy@hub.org> | 1996-08-28 01:59:28 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@hub.org> | 1996-08-28 01:59:28 +0000 |
| commit | 105409746499657acdffc109db9d343b464bda1f (patch) | |
| tree | ad73a9b45b4500ddedb5b7d18edcf90ec7cb35c5 /src/include/catalog/pg_database.h | |
| parent | ca405ae4bf50a0074cf6e7ffb4873d5c9a861403 (diff) | |
| download | postgresql-105409746499657acdffc109db9d343b464bda1f.tar.gz | |
More cleanups of the include files
- centralizing to simplify the -I's required to compile
Diffstat (limited to 'src/include/catalog/pg_database.h')
| -rw-r--r-- | src/include/catalog/pg_database.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/include/catalog/pg_database.h b/src/include/catalog/pg_database.h new file mode 100644 index 0000000000..92f84b8edc --- /dev/null +++ b/src/include/catalog/pg_database.h @@ -0,0 +1,57 @@ +/*------------------------------------------------------------------------- + * + * pg_database.h-- + * definition of the system "database" relation (pg_database) + * along with the relation's initial contents. + * + * + * Copyright (c) 1994, Regents of the University of California + * + * $Id: pg_database.h,v 1.1 1996/08/28 01:56:41 scrappy Exp $ + * + * NOTES + * the genbki.sh script reads this file and generates .bki + * information from the DATA() statements. + * + *------------------------------------------------------------------------- + */ +#ifndef PG_DATABASE_H +#define PG_DATABASE_H + +/* ---------------- + * 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 "postgres.h" + +/* ---------------- + * pg_database definition. cpp turns this into + * typedef struct FormData_pg_database + * ---------------- + */ +CATALOG(pg_database) BOOTSTRAP { + NameData datname; + Oid datdba; + text datpath; /* VARIABLE LENGTH FIELD */ +} FormData_pg_database; + +/* ---------------- + * Form_pg_database corresponds to a pointer to a tuple with + * the format of pg_database relation. + * ---------------- + */ +typedef FormData_pg_database *Form_pg_database; + +/* ---------------- + * compiler constants for pg_database + * ---------------- + */ +#define Natts_pg_database 3 +#define Anum_pg_database_datname 1 +#define Anum_pg_database_datdba 2 +#define Anum_pg_database_datpath 3 + + +#endif /* PG_DATABASE_H */ |
