summaryrefslogtreecommitdiff
path: root/src/include/catalog/pg_database.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-08-24 01:14:24 +0000
committerBruce Momjian <bruce@momjian.us>1998-08-24 01:14:24 +0000
commitc0b01461db59a472f5817a8c6e99091b8a48ffc5 (patch)
tree8ea77fde00c4a8da22920d9d0aa7f8b8a77e67e0 /src/include/catalog/pg_database.h
parent9438fe5d091162136e96991da391a559e078aa23 (diff)
downloadpostgresql-c0b01461db59a472f5817a8c6e99091b8a48ffc5.tar.gz
o note that now pg_database has a new attribuite "encoding" even
if MULTIBYTE is not enabled. So be sure to run initdb. o these patches are made against the latest source tree (after Bruce's massive patch, I think) BTW, I noticed that after running regression, the oid field of pg_type seems disappeared. regression=> select oid from pg_type; ERROR: attribute 'oid' not found this happens after the constraints test. This occures with/without my patches. strange... o pg_database_mb.h, pg_class_mb.h, pg_attribute_mb.h are no longer used, and shoud be removed. o GetDatabaseInfo() in utils/misc/database.c removed (actually in #ifdef 0). seems nobody uses. t-ishii@sra.co.jp
Diffstat (limited to 'src/include/catalog/pg_database.h')
-rw-r--r--src/include/catalog/pg_database.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/include/catalog/pg_database.h b/src/include/catalog/pg_database.h
index 10015c7cc6..ef68094152 100644
--- a/src/include/catalog/pg_database.h
+++ b/src/include/catalog/pg_database.h
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_database.h,v 1.5 1997/09/08 02:35:04 momjian Exp $
+ * $Id: pg_database.h,v 1.6 1998/08/24 01:14:17 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
@@ -34,9 +34,9 @@ CATALOG(pg_database) BOOTSTRAP
{
NameData datname;
int4 datdba;
+ int4 encoding;
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.
@@ -48,10 +48,9 @@ typedef FormData_pg_database *Form_pg_database;
* compiler constants for pg_database
* ----------------
*/
-#define Natts_pg_database 3
+#define Natts_pg_database 4
#define Anum_pg_database_datname 1
#define Anum_pg_database_datdba 2
-#define Anum_pg_database_datpath 3
-
-
+#define Anum_pg_database_encoding 3
+#define Anum_pg_database_datpath 4
#endif /* PG_DATABASE_H */