OSDN Git Service

New system relations to store DEFAULT/CHECK expressions.
authorVadim B. Mikheev <vadim4o@yahoo.com>
Thu, 21 Aug 1997 01:37:55 +0000 (01:37 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Thu, 21 Aug 1997 01:37:55 +0000 (01:37 +0000)
src/include/catalog/indexing.h
src/include/catalog/pg_attrdef.h [new file with mode: 0644]
src/include/catalog/pg_attribute.h
src/include/catalog/pg_class.h
src/include/catalog/pg_relcheck.h [new file with mode: 0644]
src/include/catalog/pg_type.h

index a7fd567..68746d2 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: indexing.h,v 1.2 1996/11/06 07:05:18 scrappy Exp $
+ * $Id: indexing.h,v 1.3 1997/08/21 01:37:48 vadim Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -24,6 +24,8 @@
 #define Num_pg_proc_indices    3
 #define Num_pg_type_indices    2
 #define Num_pg_class_indices   2
+#define Num_pg_attrdef_indices 1
+#define Num_pg_relcheck_indices        1
 
 
 /*
 #define TypeOidIndex       "pg_typeidind"
 #define ClassNameIndex     "pg_classnameind"
 #define ClassOidIndex      "pg_classoidind"
+#define AttrDefaultIndex   "pg_attrdefind"
+#define RelCheckIndex      "pg_relcheckind"
 
 extern char *Name_pg_attr_indices[];
 extern char *Name_pg_proc_indices[];
 extern char *Name_pg_type_indices[];
 extern char *Name_pg_class_indices[];
+extern char *Name_pg_attrdef_indices[];
+extern char *Name_pg_relcheck_indices[];
 
 extern char *IndexedCatalogNames[];
 
@@ -98,6 +104,9 @@ DECLARE_INDEX(pg_typenameind on pg_type using btree (typname name_ops));
 DECLARE_INDEX(pg_classnameind on pg_class using btree (relname name_ops));
 DECLARE_INDEX(pg_classoidind on pg_class using btree (Oid oid_ops));
 
+DECLARE_INDEX(pg_attrdefind on pg_attrdef using btree (adrelid oid_ops));
+DECLARE_INDEX(pg_relcheckind on pg_relcheck using btree (rcrelid oid_ops));
+
 /* now build indices in the initialization scripts */
 BUILD_INDICES
 
diff --git a/src/include/catalog/pg_attrdef.h b/src/include/catalog/pg_attrdef.h
new file mode 100644 (file)
index 0000000..2c42788
--- /dev/null
@@ -0,0 +1,54 @@
+/*-------------------------------------------------------------------------
+ *
+ * pg_attrdef.h--
+ *
+ *
+ * Copyright (c) 1994, Regents of the University of California
+ *
+ * NOTES
+ *    the genbki.sh script reads this file and generates .bki
+ *    information from the DATA() statements.
+ *
+ *-------------------------------------------------------------------------
+ */
+#ifndef PG_ATTRDEF_H
+#define PG_ATTRDEF_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.
+ * ----------------
+ */
+
+/* ----------------
+ *     pg_attrdef definition.  cpp turns this into
+ *     typedef struct FormData_pg_attrdef
+ * ----------------
+ */ 
+CATALOG(pg_attrdef) BOOTSTRAP {
+    Oid                adrelid;
+    int2       adnum;
+    text       adbin;
+    text       adsrc;
+} FormData_pg_attrdef;
+
+/* ----------------
+ *     Form_pg_attrdef corresponds to a pointer to a tuple with
+ *     the format of pg_attrdef relation.
+ * ----------------
+ */
+typedef FormData_pg_attrdef    *Form_pg_attrdef;
+
+/* ----------------
+ *     compiler constants for pg_attrdef
+ * ----------------
+ */
+#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
+
+
+#endif /* PG_ATTRDEF_H */
index a5fed2a..9fb9224 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_attribute.h,v 1.8 1997/08/19 04:45:58 vadim Exp $
+ * $Id: pg_attribute.h,v 1.9 1997/08/21 01:37:51 vadim Exp $
  *
  * NOTES
  *    the genbki.sh script reads this file and generates .bki
@@ -48,9 +48,7 @@ CATALOG(pg_attribute) BOOTSTRAP {
          attributes of this instance, so they had better match or Postgres
          will fail.
          */
-    Oid        attdefrel;
     int4       attnvals;
-    Oid        atttyparg;      /* type arg for arrays/spquel/procs */
     int2       attlen;
       /* attlen is a copy of the typlen field from pg_type for this
          attribute.  See atttypid above.  See struct TypeTupleFormData for
@@ -70,14 +68,6 @@ CATALOG(pg_attribute) BOOTSTRAP {
          
          Note that (attnum - 1) is often used as the index to an array.  
          */
-    int2       attbound;
-    bool       attbyval;
-      /* attbyval is a copy of the typbyval field from pg_type for this
-         attribute.  See atttypid above.  See struct TypeTupleFormData for
-         definition.
-         */
-    bool       attcanindex;
-    Oid        attproc;        /* spquel? */
     int4       attnelems;
     int4       attcacheoff;
       /* fastgetattr() uses attcacheoff to cache byte offsets of
@@ -87,6 +77,11 @@ CATALOG(pg_attribute) BOOTSTRAP {
          attcacheoff in the copies.  This speeds up the attribute
          walking process.  
          */
+    bool       attbyval;
+      /* attbyval is a copy of the typbyval field from pg_type for this
+         attribute.  See atttypid above.  See struct TypeTupleFormData for
+         definition.
+         */
     bool        attisset;
     char       attalign; 
       /* attalign is a copy of the typalign field from pg_type for this
@@ -95,6 +90,8 @@ CATALOG(pg_attribute) BOOTSTRAP {
          */
     bool        attnotnull;
       /* This flag represents the "NOT NULL" constraint */
+    bool        atthasdef;
+      /* Has DEFAULT value or not */
 } FormData_pg_attribute;
 
 /*
@@ -102,7 +99,7 @@ CATALOG(pg_attribute) BOOTSTRAP {
  * the size of the C struct is not the same as the size of the tuple.)
  */
 #define ATTRIBUTE_TUPLE_SIZE \
-    (offsetof(FormData_pg_attribute,attnotnull) + sizeof(char))
+    (offsetof(FormData_pg_attribute,atthasdef) + sizeof(char))
 
 /* ----------------
  *     Form_pg_attribute corresponds to a pointer to a tuple with
@@ -116,24 +113,25 @@ typedef FormData_pg_attribute     *AttributeTupleForm;
  * ----------------
  */
 
-#define Natts_pg_attribute             17
+#define Natts_pg_attribute             13
 #define Anum_pg_attribute_attrelid     1
 #define Anum_pg_attribute_attname      2
 #define Anum_pg_attribute_atttypid     3
-#define Anum_pg_attribute_attdefrel    4
-#define Anum_pg_attribute_attnvals     5
-#define Anum_pg_attribute_atttyparg    6
-#define Anum_pg_attribute_attlen       7
-#define Anum_pg_attribute_attnum       8
-#define Anum_pg_attribute_attbound     9
-#define Anum_pg_attribute_attbyval     10
-#define Anum_pg_attribute_attcanindex  11
-#define Anum_pg_attribute_attproc      12
-#define Anum_pg_attribute_attnelems    13
-#define Anum_pg_attribute_attcacheoff  14
-#define Anum_pg_attribute_attisset      15
-#define Anum_pg_attribute_attalign      16
-#define Anum_pg_attribute_attnotnull    17
+
+#define Anum_pg_attribute_attnvals     4
+
+#define Anum_pg_attribute_attlen       5
+#define Anum_pg_attribute_attnum       6
+
+
+
+#define Anum_pg_attribute_attnelems    7
+#define Anum_pg_attribute_attcacheoff  8
+#define Anum_pg_attribute_attbyval     9
+#define Anum_pg_attribute_attisset      10
+#define Anum_pg_attribute_attalign      11
+#define Anum_pg_attribute_attnotnull    12
+#define Anum_pg_attribute_atthasdef     13
 
 
 /* ----------------
@@ -161,355 +159,382 @@ typedef FormData_pg_attribute   *AttributeTupleForm;
  * ----------------
  */
 #define Schema_pg_type \
-{ 1247l, {"typname"},      19l, 0l, 0l, 0l, NAMEDATALEN,  1, 0,   '\0', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1247l, {"typowner"},     26l, 0l, 0l, 0l,  4,  2, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1247l, {"typlen"},       21l, 0l, 0l, 0l,  2,  3, 0, '\001', '\001', 0l, 0l, -1l, '\0', 's', '\0' }, \
-{ 1247l, {"typprtlen"},    21l, 0l, 0l, 0l,  2,  4, 0, '\001', '\001', 0l, 0l, -1l, '\0', 's', '\0' }, \
-{ 1247l, {"typbyval"},     16l, 0l, 0l, 0l,  1,  5, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1247l, {"typtype"},      18l, 0l, 0l, 0l,  1,  6, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1247l, {"typisdefined"}, 16l, 0l, 0l, 0l,  1,  7, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1247l, {"typdelim"},     18l, 0l, 0l, 0l,  1,  8, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1247l, {"typrelid"},     26l, 0l, 0l, 0l,  4,  9, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1247l, {"typelem"},      26l, 0l, 0l, 0l,  4, 10, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1247l, {"typinput"},     24l, 0l, 0l, 0l,  4, 11, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1247l, {"typoutput"},    24l, 0l, 0l, 0l,  4, 12, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1247l, {"typreceive"},   24l, 0l, 0l, 0l,  4, 13, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1247l, {"typsend"},      24l, 0l, 0l, 0l,  4, 14, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1247l, {"typalign"},     18l, 0l, 0l, 0l,  1, 15, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1247l, {"typdefault"},   25l, 0l, 0l, 0l, -1, 16, 0,   '\0', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }
+{ 1247l, {"typname"},      19l, 0l, NAMEDATALEN,  1, 0l, -1l, '\0', '\0', 'i', '\0', '\0' }, \
+{ 1247l, {"typowner"},     26l, 0l,  4,  2, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1247l, {"typlen"},       21l, 0l,  2,  3, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
+{ 1247l, {"typprtlen"},    21l, 0l,  2,  4, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
+{ 1247l, {"typbyval"},     16l, 0l,  1,  5, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1247l, {"typtype"},      18l, 0l,  1,  6, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1247l, {"typisdefined"}, 16l, 0l,  1,  7, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1247l, {"typdelim"},     18l, 0l,  1,  8, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1247l, {"typrelid"},     26l, 0l,  4,  9, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1247l, {"typelem"},      26l, 0l,  4, 10, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1247l, {"typinput"},     24l, 0l,  4, 11, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1247l, {"typoutput"},    24l, 0l,  4, 12, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1247l, {"typreceive"},   24l, 0l,  4, 13, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1247l, {"typsend"},      24l, 0l,  4, 14, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1247l, {"typalign"},     18l, 0l,  1, 15, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1247l, {"typdefault"},   25l, 0l, -1, 16, 0l, -1l, '\0'  , '\0', 'i', '\0', '\0' }
 
-DATA(insert OID = 0 ( 1247 typname          19 0 0 0 NAMEDATALEN   1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 typowner         26 0 0 0  4   2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 typlen           21 0 0 0  2   3 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1247 typprtlen        21 0 0 0  2   4 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1247 typbyval         16 0 0 0  1   5 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1247 typtype          18 0 0 0  1   6 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1247 typisdefined     16 0 0 0  1   7 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1247 typdelim         18 0 0 0  1   8 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1247 typrelid         26 0 0 0  4   9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 typelem          26 0 0 0  4  10 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 typinput         24 0 0 0  4  11 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 typoutput        24 0 0 0  4  12 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 typreceive       24 0 0 0  4  13 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 typsend          24 0 0 0  4  14 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 typalign         18 0 0 0  1  15 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1247 typdefault       25 0 0 0 -1  16 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 ctid             27 0 0 0  6  -1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 oid              26 0 0 0  4  -2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 xmin             28 0 0 0  4  -3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 cmin             29 0 0 0  2  -4 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1247 xmax             28 0 0 0  4  -5 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 cmax             29 0 0 0  2  -6 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1247 chain            27 0 0 0  6  -7 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 anchor           27 0 0 0  6  -8 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 tmax            702 0 0 0  4  -9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 tmin            702 0 0 0  4 -10 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1247 vtype            18 0 0 0  1 -11 0 t t 0 0 -1 f c f));
+DATA(insert OID = 0 ( 1247 typname          19 0 NAMEDATALEN   1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1247 typowner         26 0  4   2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1247 typlen           21 0  2   3 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1247 typprtlen        21 0  2   4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1247 typbyval         16 0  1   5 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1247 typtype          18 0  1   6 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1247 typisdefined     16 0  1   7 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1247 typdelim         18 0  1   8 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1247 typrelid         26 0  4   9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1247 typelem          26 0  4  10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1247 typinput         24 0  4  11 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1247 typoutput        24 0  4  12 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1247 typreceive       24 0  4  13 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1247 typsend          24 0  4  14 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1247 typalign         18 0  1  15 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1247 typdefault       25 0 -1  16 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1247 ctid             27 0  6  -1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1247 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1247 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1247 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1247 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1247 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1247 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1247 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1247 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1247 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1247 vtype            18 0  1 -11 0 -1 t f c f f));
 
 /* ----------------
  *     pg_database
  * ----------------
  */
-DATA(insert OID = 0 ( 1262 datname          19 0 0 0 NAMEDATALEN   1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1262 datdba           26 0 0 0  4   2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1262 datpath          25 0 0 0 -1   3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1262 ctid             27 0 0 0  6  -1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1262 oid              26 0 0 0  4  -2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1262 xmin             28 0 0 0  4  -3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1262 cmin             29 0 0 0  2  -4 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1262 xmax             28 0 0 0  4  -5 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1262 cmax             29 0 0 0  2  -6 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1262 chain            27 0 0 0  6  -7 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1262 anchor           27 0 0 0  6  -8 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1262 tmax            702 0 0 0  4  -9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1262 tmin            702 0 0 0  4 -10 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1262 vtype            18 0 0 0  1 -11 0 t t 0 0 -1 f c f));
+DATA(insert OID = 0 ( 1262 datname          19 0 NAMEDATALEN   1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1262 datdba           26 0  4   2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1262 datpath          25 0 -1   3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1262 ctid             27 0  6  -1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1262 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1262 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1262 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1262 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1262 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1262 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1262 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1262 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1262 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1262 vtype            18 0  1 -11 0 -1 t f c f f));
     
 /* ----------------
  *     pg_demon
  * ----------------
  */
-DATA(insert OID = 0 ( 1251 demserid         26 0 0 0  4   1 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1251 demname          19 0 0 0 NAMEDATALEN   2 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1251 demowner         26 0 0 0  4   3 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1251 demcode          24 0 0 0  4   4 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1251 ctid             27 0 0 0  6  -1 0 f t 0 0 -1 f i f));
+DATA(insert OID = 0 ( 1251 demserid         26 0  4   1 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1251 demname          19 0 NAMEDATALEN  2 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1251 demowner         26 0  4   3 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1251 demcode          24 0  4   4 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1251 ctid             27 0  6  -1 0 -1 f f i f f));
 
-DATA(insert OID = 0 ( 1251 oid              26 0 0 0  4  -2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1251 xmin             28 0 0 0  4  -3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1251 cmin             29 0 0 0  2  -4 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1251 xmax             28 0 0 0  4  -5 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1251 cmax             29 0 0 0  2  -6 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1251 chain            27 0 0 0  6  -7 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1251 anchor           27 0 0 0  6  -8 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1251 tmax            702 0 0 0  4  -9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1251 tmin            702 0 0 0  4 -10 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1251 vtype            18 0 0 0  1 -11 0 t t 0 0 -1 f c f));
+DATA(insert OID = 0 ( 1251 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1251 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1251 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1251 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1251 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1251 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1251 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1251 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1251 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1251 vtype            18 0  1 -11 0 -1 t f c f f));
     
 /* ----------------
  *     pg_proc
  * ----------------
  */
 #define Schema_pg_proc \
-{ 1255l, {"proname"},       19l, 0l, 0l, 0l, NAMEDATALEN,  1, 0,   '\0', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1255l, {"proowner"},      26l, 0l, 0l, 0l,  4,  2, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1255l, {"prolang"},       26l, 0l, 0l, 0l,  4,  3, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1255l, {"proisinh"},      16l, 0l, 0l, 0l,  1,  4, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1255l, {"proistrusted"},  16l, 0l, 0l, 0l,  1,  5, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1255l, {"proiscachable"}, 16l, 0l, 0l, 0l,  1,  6, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1255l, {"pronargs"},      21l, 0l, 0l, 0l,  2,  7, 0, '\001', '\001', 0l, 0l, -1l, '\0', 's', '\0' }, \
-{ 1255l, {"proretset"},     16l, 0l, 0l, 0l,  1,  8, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1255l, {"prorettype"},    26l, 0l, 0l, 0l,  4,  9, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1255l, {"proargtypes"},   30l, 0l, 0l, 0l, 32, 10, 0,   '\0', '\001', 0l, 0l, \
-      -1l, '\0', 'i', '\0' }, \
-{ 1255l, {"probyte_pct"},   23l, 0l, 0l, 0l,  4, 11, 0, '\001', '\001', 0l, 0l, \
-      -1l, '\0', 'i', '\0' }, \
-{ 1255l, {"properbyte_cpu"},   23l, 0l, 0l, 0l,  4, 12, 0, '\001', '\001', 0l, 0l,      -1l, '\0', 'i', '\0' }, \
-{ 1255l, {"propercall_cpu"},   23l, 0l, 0l, 0l,  4, 13, 0, '\001', '\001', 0l, 0l,      -1l, '\0', 'i', '\0' }, \
-{ 1255l, {"prooutin_ratio"},   23l, 0l, 0l, 0l,  4, 14, 0, '\001', '\001', 0l, 0l,      -1l, '\0', 'i', '\0' }, \
-{ 1255l, {"prosrc"},        25l, 0l, 0l, 0l, -1,  15, 0,   '\0', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1255l, {"probin"},        17l, 0l, 0l, 0l, -1,  16, 0,   '\0', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }
+{ 1255l, {"proname"},       19l, 0l, NAMEDATALEN,  1, 0l, -1l, '\0', '\0', 'i', '\0', '\0' }, \
+{ 1255l, {"proowner"},      26l, 0l,  4,  2, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1255l, {"prolang"},       26l, 0l,  4,  3, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1255l, {"proisinh"},      16l, 0l,  1,  4, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1255l, {"proistrusted"},  16l, 0l,  1,  5, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1255l, {"proiscachable"}, 16l, 0l,  1,  6, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1255l, {"pronargs"},      21l, 0l,  2,  7, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
+{ 1255l, {"proretset"},     16l, 0l,  1,  8, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1255l, {"prorettype"},    26l, 0l,  4,  9, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1255l, {"proargtypes"},   30l, 0l, 32, 10, 0l, -1l,   '\0', '\0', 'i', '\0', '\0' }, \
+{ 1255l, {"probyte_pct"},   23l, 0l,  4, 11, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1255l, {"properbyte_cpu"},   23l, 0l,  4, 12, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1255l, {"propercall_cpu"},   23l, 0l,  4, 13, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1255l, {"prooutin_ratio"},   23l, 0l,  4, 14, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1255l, {"prosrc"},        25l, 0l, -1,  15,   0l, -1l, '\0', '\0', 'i', '\0', '\0' }, \
+{ 1255l, {"probin"},        17l, 0l, -1,  16,   0l, -1l, '\0', '\0', 'i', '\0', '\0' }
 
-DATA(insert OID = 0 ( 1255 proname          19 0 0 0 NAMEDATALEN   1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 proowner         26 0 0 0  4   2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 prolang          26 0 0 0  4   3 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 proisinh         16 0 0 0  1   4 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1255 proistrusted     16 0 0 0  1   5 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1255 proiscachable    16 0 0 0  1   6 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1255 pronargs         21 0 0 0  2   7 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1255 proretset        16 0 0 0  1   8 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1255 prorettype       26 0 0 0  4   9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 proargtypes      30 0 0 0 32  10 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 probyte_pct      23 0 0 0  4  11 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 properbyte_cpu   23 0 0 0  4  12 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 propercall_cpu   23 0 0 0  4  13 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 prooutin_ratio   23 0 0 0  4  14 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 prosrc           25 0 0 0 -1  15 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 probin           17 0 0 0 -1  16 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 ctid             27 0 0 0  6  -1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 oid              26 0 0 0  4  -2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 xmin             28 0 0 0  4  -3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 cmin             29 0 0 0  2  -4 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1255 xmax             28 0 0 0  4  -5 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 cmax             29 0 0 0  2 -6 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1255 chain            27 0 0 0  6  -7 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 anchor           27 0 0 0  6  -8 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 tmax            702 0 0 0  4  -9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 tmin            702 0 0 0  4 -10 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1255 vtype            18 0 0 0  1 -11 0 t t 0 0 -1 f c f));
+DATA(insert OID = 0 ( 1255 proname          19 0 NAMEDATALEN   1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1255 proowner         26 0  4   2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1255 prolang          26 0  4   3 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1255 proisinh         16 0  1   4 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1255 proistrusted     16 0  1   5 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1255 proiscachable    16 0  1   6 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1255 pronargs         21 0  2   7 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1255 proretset        16 0  1   8 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1255 prorettype       26 0  4   9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1255 proargtypes      30 0 32  10 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1255 probyte_pct      23 0  4  11 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1255 properbyte_cpu   23 0  4  12 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1255 propercall_cpu   23 0  4  13 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1255 prooutin_ratio   23 0  4  14 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1255 prosrc           25 0 -1  15 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1255 probin           17 0 -1  16 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1255 ctid             27 0  6  -1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1255 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1255 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1255 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1255 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1255 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1255 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1255 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1255 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1255 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1255 vtype            18 0  1 -11 0 -1 t f c f f));
     
 /* ----------------
  *     pg_server
  * ----------------
  */
-DATA(insert OID = 0 ( 1257 sername          19 0 0 0 NAMEDATALEN   1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1257 serpid           21 0 0 0  2   2 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1257 serport          21 0 0 0  2   3 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1257 ctid             27 0 0 0  6  -1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1257 oid              26 0 0 0  4  -2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1257 xmin             28 0 0 0  4  -3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1257 cmin             29 0 0 0  2  -4 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1257 xmax             28 0 0 0  4  -5 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1257 cmax             29 0 0 0  2  -6 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1257 chain            27 0 0 0  6  -7 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1257 anchor           27 0 0 0  6  -8 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1257 tmax            702 0 0 0  4  -9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1257 tmin            702 0 0 0  4 -10 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1257 vtype            18 0 0 0  1 -11 0 t t 0 0 -1 f c f));
+DATA(insert OID = 0 ( 1257 sername          19 0 NAMEDATALEN   1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1257 serpid           21 0  2   2 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1257 serport          21 0  2   3 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1257 ctid             27 0  6  -1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1257 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1257 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1257 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1257 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1257 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1257 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1257 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1257 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1257 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1257 vtype            18 0  1 -11 0 -1 t f c f f));
     
 /* ----------------
  *     pg_user
  * ----------------
  */
-DATA(insert OID = 0 ( 1260 usename          19 0 0 0 NAMEDATALEN   1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1260 usesysid         23 0 0 0  4   2 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1260 usecreatedb      16 0 0 0  1   3 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1260 usetrace         16 0 0 0  1   4 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1260 usesuper         16 0 0 0  1   5 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1260 usecatupd        16 0 0 0  1   6 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1260 ctid             27 0 0 0  6  -1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1260 oid              26 0 0 0  4  -2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1260 xmin             28 0 0 0  4  -3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1260 cmin             29 0 0 0  2  -4 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1260 xmax             28 0 0 0  4  -5 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1260 cmax             29 0 0 0  2  -6 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1260 chain            27 0 0 0  6  -7 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1260 anchor           27 0 0 0  6  -8 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1260 tmax            702 0 0 0  4  -9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1260 tmin            702 0 0 0  4 -10 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1260 vtype            18 0 0 0  1 -11 0 t t 0 0 -1 f c f));
+DATA(insert OID = 0 ( 1260 usename          19 0 NAMEDATALEN   1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1260 usesysid         23 0  4   2 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1260 usecreatedb      16 0  1   3 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1260 usetrace         16 0  1   4 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1260 usesuper         16 0  1   5 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1260 usecatupd        16 0  1   6 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1260 ctid             27 0  6  -1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1260 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1260 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1260 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1260 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1260 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1260 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1260 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1260 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1260 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1260 vtype            18 0  1 -11 0 -1 t f c f f));
 
 /* ----------------
  *     pg_group
  * ----------------
  */
-DATA(insert OID = 0 ( 1261 groname          19 0 0 0 NAMEDATALEN   1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1261 grosysid         23 0 0 0  4   2 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1261 grolist        1007 0 0 0 -1   3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1261 ctid             27 0 0 0  6  -1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1261 oid              26 0 0 0  4  -2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1261 xmin             28 0 0 0  4  -3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1261 cmin             29 0 0 0  2  -4 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1261 xmax             28 0 0 0  4  -5 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1261 cmax             29 0 0 0  2  -6 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1261 chain            27 0 0 0  6  -7 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1261 anchor           27 0 0 0  6  -8 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1261 tmax            702 0 0 0  4  -9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1261 tmin            702 0 0 0  4 -10 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1261 vtype            18 0 0 0  1 -11 0 t t 0 0 -1 f c f));
+DATA(insert OID = 0 ( 1261 groname          19 0 NAMEDATALEN  1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1261 grosysid         23 0  4   2 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1261 grolist        1007 0 -1   3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1261 ctid             27 0  6  -1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1261 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1261 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1261 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1261 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1261 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1261 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1261 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1261 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1261 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1261 vtype            18 0  1 -11 0 -1 t f c f f));
     
 /* ----------------
  *     pg_attribute
  * ----------------
  */
 #define Schema_pg_attribute \
-{ 1249l, {"attrelid"},    26l, 0l, 0l, 0l,  4,  1, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1249l, {"attname"},     19l, 0l, 0l, 0l, NAMEDATALEN,  2, 0,   '\0', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1249l, {"atttypid"},    26l, 0l, 0l, 0l,  4,  3, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1249l, {"attdefrel"},   26l, 0l, 0l, 0l,  4,  4, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1249l, {"attnvals"},    23l, 0l, 0l, 0l,  4,  5, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1249l, {"atttyparg"},   26l, 0l, 0l, 0l,  4,  6, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1249l, {"attlen"},      21l, 0l, 0l, 0l,  2,  7, 0, '\001', '\001', 0l, 0l, -1l, '\0', 's', '\0' }, \
-{ 1249l, {"attnum"},      21l, 0l, 0l, 0l,  2,  8, 0, '\001', '\001', 0l, 0l, -1l, '\0', 's', '\0' }, \
-{ 1249l, {"attbound"},    21l, 0l, 0l, 0l,  2,  9, 0, '\001', '\001', 0l, 0l, -1l, '\0', 's', '\0' }, \
-{ 1249l, {"attbyval"},    16l, 0l, 0l, 0l,  1, 10, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1249l, {"attcanindex"}, 16l, 0l, 0l, 0l,  1, 11, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1249l, {"attproc"},     26l, 0l, 0l, 0l,  4, 12, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1249l, {"attnelems"},   23l, 0l, 0l, 0l,  4, 13, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1249l, {"attcacheoff"}, 23l, 0l, 0l, 0l,  4, 14, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1249l, {"attisset"},    16l, 0l, 0l, 0l,  1, 15, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1249l, {"attalign"},    18l, 0l, 0l, 0l,  1, 16, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 12491, {"attnotnull"},  16l, 0l, 0l, 0l,  1, 17, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }
+{ 1249l, {"attrelid"},    26l, 0l,  4,  1, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1249l, {"attname"},     19l, 0l, NAMEDATALEN,  2, 0l, -1l, '\0', '\0', 'i', '\0', '\0' }, \
+{ 1249l, {"atttypid"},    26l, 0l,  4,  3, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1249l, {"attnvals"},    23l, 0l,  4,  4, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1249l, {"attlen"},      21l, 0l,  2,  5, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
+{ 1249l, {"attnum"},      21l, 0l,  2,  6, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
+{ 1249l, {"attnelems"},   23l, 0l,  4,  7, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1249l, {"attcacheoff"}, 23l, 0l,  4,  8, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1249l, {"attbyval"},    16l, 0l,  1,  9, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1249l, {"attisset"},    16l, 0l,  1, 10, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1249l, {"attalign"},    18l, 0l,  1, 11, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 12491, {"attnotnull"},  16l, 0l,  1, 12, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 12491, {"atthasdef"},   16l, 0l,  1, 13, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }
 
-DATA(insert OID = 0 ( 1249 attrelid         26 0 0 0  4   1 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 attname          19 0 0 0 NAMEDATALEN   2 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 atttypid         26 0 0 0  4   3 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 attdefrel        26 0 0 0  4   4 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 attnvals         23 0 0 0  4   5 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 atttyparg        26 0 0 0  4   6 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 attlen           21 0 0 0  2   7 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1249 attnum           21 0 0 0  2   8 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1249 attbound         21 0 0 0  2   9 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1249 attbyval         16 0 0 0  1  10 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1249 attcanindex      16 0 0 0  1  11 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1249 attproc          26 0 0 0  4  12 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 attnelems        23 0 0 0  4  13 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 attcacheoff      23 0 0 0  4  14 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 attisset         16 0 0 0  1  15 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1249 attalign         18 0 0 0  1  16 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1249 attnotnull       16 0 0 0  1  17 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1249 ctid             27 0 0 0  6  -1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 oid              26 0 0 0  4  -2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 xmin             28 0 0 0  4  -3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 cmin             29 0 0 0  2  -4 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1249 xmax             28 0 0 0  4  -5 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 cmax             29 0 0 0  2  -6 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1249 chain            27 0 0 0  6  -7 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 anchor           27 0 0 0  6  -8 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 tmax            702 0 0 0  4  -9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 tmin            702 0 0 0  4 -10 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1249 vtype            18 0 0 0  1 -11 0 t t 0 0 -1 f c f));
+DATA(insert OID = 0 ( 1249 attrelid         26 0  4   1 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1249 attname          19 0 NAMEDATALEN  2 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1249 atttypid         26 0  4   3 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1249 attnvals         23 0  4   4 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1249 attlen           21 0  2   5 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1249 attnum           21 0  2   6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1249 attnelems        23 0  4   7 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1249 attcacheoff      23 0  4   8 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1249 attbyval         16 0  1   9 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1249 attisset         16 0  1  10 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1249 attalign         18 0  1  11 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1249 attnotnull       16 0  1  12 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1249 atthasdef        16 0  1  13 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1249 ctid             27 0  6  -1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1249 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1249 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1249 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1249 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1249 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1249 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1249 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1249 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1249 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1249 vtype            18 0  1 -11 0 -1 t f c f f));
     
 /* ----------------
  *     pg_class
  * ----------------
  */
 #define Schema_pg_class \
-{ 1259l, {"relname"},      19l, 0l, 0l, 0l, NAMEDATALEN,  1, 0,   '\0', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1259l, {"reltype"},     26l, 0l, 0l, 0l,  4,  2, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1259l, {"relowner"},     26l, 0l, 0l, 0l,  4,  2, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1259l, {"relam"},        26l, 0l, 0l, 0l,  4,  3, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1259l, {"relpages"},     23,  0l, 0l, 0l,  4,  4, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1259l, {"reltuples"},    23,  0l, 0l, 0l,  4,  5, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1259l, {"relexpires"},   702,  0l, 0l, 0l,  4,  6, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1259l, {"relpreserved"}, 703,  0l, 0l, 0l,  4,  7, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1259l, {"relhasindex"},  16,  0l, 0l, 0l,  1,  8, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1259l, {"relisshared"},  16,  0l, 0l, 0l,  1,  9, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1259l, {"relkind"},      18,  0l, 0l, 0l,  1, 10, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1259l, {"relarch"},      18,  0l, 0l, 0l,  1, 11, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1259l, {"relnatts"},     21,  0l, 0l, 0l,  2, 12, 0, '\001', '\001', 0l, 0l, -1l, '\0', 's', '\0' }, \
-{ 1259l, {"relsmgr"},      210l,  0l, 0l, 0l,  2, 13, 0, '\001', '\001', 0l, 0l, -1l, '\0', 's', '\0' }, \
-{ 1259l, {"relkey"},       22,  0l, 0l, 0l, 16, 14, 0,   '\0', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1259l, {"relkeyop"},     30,  0l, 0l, 0l, 32, 15, 0,   '\0', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }, \
-{ 1259l, {"relhasrules"},  16,  0l, 0l, 0l,  1, 16, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'c', '\0' }, \
-{ 1259l, {"relacl"},     1034l, 0l, 0l, 0l, -1, 17, 0,   '\0', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }
+{ 1259l, {"relname"},      19l, 0l, NAMEDATALEN,  1, 0l, -1l, '\0', '\0', 'i', '\0', '\0' }, \
+{ 1259l, {"reltype"},      26l, 0l,  4,  2, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1259l, {"relowner"},     26l, 0l,  4,  2, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1259l, {"relam"},        26l, 0l,  4,  3, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1259l, {"relpages"},     23,  0l,  4,  4, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1259l, {"reltuples"},    23,  0l,  4,  5, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1259l, {"relexpires"},   702, 0l,  4,  6, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1259l, {"relpreserved"}, 703, 0l,  4,  7, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }, \
+{ 1259l, {"relhasindex"},  16,  0l,  1,  8, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1259l, {"relisshared"},  16,  0l,  1,  9, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1259l, {"relkind"},      18,  0l,  1, 10, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1259l, {"relarch"},      18,  0l,  1, 11, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1259l, {"relnatts"},     21,  0l,  2, 12, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
+{ 1259l, {"relsmgr"},      210l, 0l, 2, 13, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
+{ 1259l, {"relchecks"},    210l, 0l, 2, 14, 0l, -1l, '\001', '\0', 's', '\0', '\0' }, \
+{ 1259l, {"relhasrules"},  16,  0l,  1, 15, 0l, -1l, '\001', '\0', 'c', '\0', '\0' }, \
+{ 1259l, {"relacl"},     1034l, 0l, -1, 16, 0l, -1l,   '\0', '\0', 'i', '\0', '\0' }
 
-DATA(insert OID = 0 ( 1259 relname          19 0 0 0 NAMEDATALEN   1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 reltype          26 0 0 0  4   2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 relowner         26 0 0 0  4   2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 relam            26 0 0 0  4   3 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 relpages         23 0 0 0  4   4 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 reltuples        23 0 0 0  4   5 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 relexpires      702 0 0 0  4   6 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 relpreserved    702 0 0 0  4   7 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 relhasindex      16 0 0 0  1   8 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1259 relisshared      16 0 0 0  1   9 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1259 relkind          18 0 0 0  1  10 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1259 relarch          18 0 0 0  1  11 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1259 relnatts         21 0 0 0  2  12 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1259 relsmgr         210 0 0 0  2  13 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1259 relkey           22 0 0 0 16  14 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 relkeyop         30 0 0 0 32  15 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 relhasrules      16 0 0 0  1  16 0 t t 0 0 -1 f c f));
-DATA(insert OID = 0 ( 1259 relacl         1034 0 0 0 -1  17 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 ctid             27 0 0 0  6  -1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 oid              26 0 0 0  4  -2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 xmin             28 0 0 0  4  -3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 cmin             29 0 0 0  2  -4 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1259 xmax             28 0 0 0  4  -5 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 cmax             29 0 0 0  2  -6 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1259 chain            27 0 0 0  6  -7 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 anchor           27 0 0 0  6  -8 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 tmax            702 0 0 0  4  -9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 tmin            702 0 0 0  4 -10 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1259 vtype            18 0 0 0  1 -11 0 t t 0 0 -1 f c f));
+DATA(insert OID = 0 ( 1259 relname          19 0 NAMEDATALEN   1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1259 reltype          26 0  4   2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1259 relowner         26 0  4   2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1259 relam            26 0  4   3 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1259 relpages         23 0  4   4 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1259 reltuples        23 0  4   5 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1259 relexpires      702 0  4   6 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1259 relpreserved    702 0  4   7 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1259 relhasindex      16 0  1   8 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1259 relisshared      16 0  1   9 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1259 relkind          18 0  1  10 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1259 relarch          18 0  1  11 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1259 relnatts         21 0  2  12 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1259 relsmgr         210 0  2  13 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1259 relchecks       210 0  2  14 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1259 relhasrules      16 0  1  15 0 -1 t f c f f));
+DATA(insert OID = 0 ( 1259 relacl         1034 0 -1  16 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1259 ctid             27 0  6  -1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1259 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1259 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1259 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1259 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1259 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1259 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1259 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1259 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1259 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1259 vtype            18 0  1 -11 0 -1 t f c f f));
     
 /* ----------------
  *     pg_magic
  * ----------------
  */
-DATA(insert OID = 0 ( 1253 magname          19 0 0 0 NAMEDATALEN   1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1253 magvalue         19 0 0 0 NAMEDATALEN   2 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1253 ctid             27 0 0 0  6  -1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1253 oid              26 0 0 0  4  -2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1253 xmin             28 0 0 0  4  -3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1253 cmin             29 0 0 0  2  -4 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1253 xmax             28 0 0 0  4  -5 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1253 cmax             29 0 0 0  2  -6 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1253 chain            27 0 0 0  6  -7 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1253 anchor           27 0 0 0  6  -8 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1253 tmax            702 0 0 0  4  -9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1253 tmin            702 0 0 0  4 -10 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1253 vtype            18 0 0 0  1 -11 0 t t 0 0 -1 f c f));
+DATA(insert OID = 0 ( 1253 magname          19 0 NAMEDATALEN   1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1253 magvalue         19 0 NAMEDATALEN   2 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1253 ctid             27 0  6  -1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1253 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1253 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1253 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1253 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1253 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1253 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1253 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1253 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1253 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1253 vtype            18 0  1 -11 0 -1 t f c f f));
     
 /* ----------------
  *     pg_defaults
  * ----------------
  */
-DATA(insert OID = 0 ( 1263 defname          19 0 0 0 NAMEDATALEN   1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1263 defvalue         19 0 0 0 NAMEDATALEN   2 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1263 ctid             27 0 0 0  6  -1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1263 oid              26 0 0 0  4  -2 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1263 xmin             28 0 0 0  4  -3 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1263 cmin             29 0 0 0  2  -4 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1263 xmax             28 0 0 0  4  -5 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1263 cmax             29 0 0 0  2  -6 0 t t 0 0 -1 f s f));
-DATA(insert OID = 0 ( 1263 chain            27 0 0 0  6  -7 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1263 anchor           27 0 0 0  6  -8 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1263 tmax            702 0 0 0  4  -9 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1263 tmin            702 0 0 0  4 -10 0 t t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1263 vtype            18 0 0 0  1 -11 0 t t 0 0 -1 f c f));
+DATA(insert OID = 0 ( 1263 defname          19 0 NAMEDATALEN   1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1263 defvalue         19 0 NAMEDATALEN   2 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1263 ctid             27 0  6  -1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1263 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1263 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1263 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1263 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1263 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1263 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1263 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1263 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1263 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1263 vtype            18 0  1 -11 0 -1 t f c f f));
+    
+/* ----------------
+ *     pg_attrdef
+ * ----------------
+ */
+DATA(insert OID = 0 ( 1215 adrelid          26 0  4   1 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1215 adnum            21 0  2   2 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1215 adbin            25 0 -1   3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1215 adsrc            25 0 -1   4 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1215 ctid             27 0  6  -1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1215 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1215 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1215 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1215 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1215 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1215 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1215 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1215 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1215 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1215 vtype            18 0  1 -11 0 -1 t f c f f));
+    
+/* ----------------
+ *     pg_relcheck
+ * ----------------
+ */
+DATA(insert OID = 0 ( 1216 rcrelid          26 0  4   1 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1216 rcname           19 0  NAMEDATALEN  2 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1216 rcbin            25 0 -1   3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1216 rcsrc            25 0 -1   4 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1216 ctid             27 0  6  -1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1216 oid              26 0  4  -2 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1216 xmin             28 0  4  -3 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1216 cmin             29 0  2  -4 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1216 xmax             28 0  4  -5 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1216 cmax             29 0  2  -6 0 -1 t f s f f));
+DATA(insert OID = 0 ( 1216 chain            27 0  6  -7 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1216 anchor           27 0  6  -8 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1216 tmin            702 0  4  -9 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1216 tmax            702 0  4 -10 0 -1 t f i f f));
+DATA(insert OID = 0 ( 1216 vtype            18 0  1 -11 0 -1 t f c f f));
     
-
 /* ----------------
  *     pg_hosts - this relation is used to store host based authentication
  *                info
  *               
  * ----------------
  */
-DATA(insert OID = 0 ( 1273 dbName           19 0 0 0  NAMEDATALEN   1 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1273 address           25 0 0 0  -1   2 0 f t 0 0 -1 f i f));
-DATA(insert OID = 0 ( 1273 mask           25 0 0 0  -1   3 0 f t 0 0 -1 f i f));
+DATA(insert OID = 0 ( 1273 dbName           19 0  NAMEDATALEN   1 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1273 address          25 0  -1   2 0 -1 f f i f f));
+DATA(insert OID = 0 ( 1273 mask             25 0  -1   3 0 -1 f f i f f));
 
 /* ----------------
  *     pg_variable - this relation is modified by special purpose access
@@ -518,9 +543,9 @@ DATA(insert OID = 0 ( 1273 mask           25 0 0 0  -1   3 0 f t 0 0 -1 f i f));
  * ----------------
  */
 #define Schema_pg_variable \
-{ 1264l, {"varfoo"},  26l, 0l, 0l, 0l, 4, 1, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }
+{ 1264l, {"varfoo"},  26l, 0l, 4, 1, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }
     
-DATA(insert OID = 0 ( 1264 varfoo           26 0 0 0  4   1 0 t t 0 0 -1 f i f));
+DATA(insert OID = 0 ( 1264 varfoo           26 0  4   1 0 -1 t f i f f));
     
 /* ----------------
  *     pg_log - this relation is modified by special purpose access
@@ -529,9 +554,9 @@ DATA(insert OID = 0 ( 1264 varfoo           26 0 0 0  4   1 0 t t 0 0 -1 f i f))
  * ----------------
  */
 #define Schema_pg_log \
-{ 1269l, {"logfoo"},  26l, 0l, 0l, 0l, 4, 1, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }
+{ 1269l, {"logfoo"},  26l, 0l, 4, 1, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }
 
-DATA(insert OID = 0 ( 1269 logfoo           26 0 0 0  4   1 0 t t 0 0 -1 f i f));
+DATA(insert OID = 0 ( 1269 logfoo           26 0  4   1 0 -1 t f i f f));
     
 /* ----------------
  *     pg_time - this relation is modified by special purpose access
@@ -540,8 +565,8 @@ DATA(insert OID = 0 ( 1269 logfoo           26 0 0 0  4   1 0 t t 0 0 -1 f i f))
  * ----------------
  */
 #define Schema_pg_time \
-{ 1271l, {"timefoo"},  26l, 0l, 0l, 0l, 4, 1, 0, '\001', '\001', 0l, 0l, -1l, '\0', 'i', '\0' }
+{ 1271l, {"timefoo"},  26l, 0l, 4, 1, 0l, -1l, '\001', '\0', 'i', '\0', '\0' }
 
-DATA(insert OID = 0 (  1271 timefoo         26 0 0 0  4   1 0 t t 0 0 -1 f i f));
+DATA(insert OID = 0 (  1271 timefoo         26 0  4   1 0 -1 t f i f f));
     
 #endif /* PG_ATTRIBUTE_H */
index 6409446..3a3e0dc 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_class.h,v 1.5 1997/04/02 03:29:35 vadim Exp $
+ * $Id: pg_class.h,v 1.6 1997/08/21 01:37:52 vadim Exp $
  *
  * NOTES
  *    ``pg_relation'' is being replaced by ``pg_class''.  currently
@@ -69,8 +69,7 @@ CATALOG(pg_class) BOOTSTRAP {
           class which have attnum > 0 (= user attribute).
           */
      int2      relsmgr;
-     int28     relkey;                 /* not used */
-     oid8      relkeyop;               /* not used */
+     int2      relchecks;              /* # of CHECK constraints */
      bool      relhasrules;
      aclitem   relacl[1];              /* this is here for the catalog */
 } FormData_pg_class;
@@ -96,8 +95,8 @@ typedef FormData_pg_class     *Form_pg_class;
  *     relacl field.
  * ----------------
  */
-#define Natts_pg_class_fixed           17
-#define Natts_pg_class                 18
+#define Natts_pg_class_fixed           16
+#define Natts_pg_class                 17
 #define Anum_pg_class_relname          1
 #define Anum_pg_class_reltype           2
 #define Anum_pg_class_relowner         3
@@ -112,31 +111,32 @@ typedef FormData_pg_class *Form_pg_class;
 #define Anum_pg_class_relarch          12
 #define Anum_pg_class_relnatts         13
 #define Anum_pg_class_relsmgr          14
-#define Anum_pg_class_relkey           15
-#define Anum_pg_class_relkeyop         16
-#define Anum_pg_class_relhasrules      17
-#define Anum_pg_class_relacl           18
+#define Anum_pg_class_relchecks                15
+#define Anum_pg_class_relhasrules      16
+#define Anum_pg_class_relacl           17
 
 /* ----------------
  *     initial contents of pg_class
  * ----------------
  */
 
-DATA(insert OID = 1247 (  pg_type 71          PGUID 0 0 0 0 0 f f r n 16 0 - - f _null_ ));
-DATA(insert OID = 1249 (  pg_attribute 75      PGUID 0 0 0 0 0 f f r n 16 0 - - f _null_ ));
-DATA(insert OID = 1251 (  pg_demon 76          PGUID 0 0 0 0 0 f t r n 4 0 - - f _null_ ));
-DATA(insert OID = 1253 (  pg_magic 80         PGUID 0 0 0 0 0 f t r n 2 0 - - f _null_ ));
-DATA(insert OID = 1255 (  pg_proc 81          PGUID 0 0 0 0 0 f f r n 16 0 - - f _null_ ));
-DATA(insert OID = 1257 (  pg_server 82         PGUID 0 0 0 0 0 f t r n 3 0 - - f _null_ ));
-DATA(insert OID = 1259 (  pg_class 83         PGUID 0 0 0 0 0 f f r n 18 0 - - f _null_ ));    
-DATA(insert OID = 1260 (  pg_user 86          PGUID 0 0 0 0 0 f t r n 6 0 - - f _null_ ));
-DATA(insert OID = 1261 (  pg_group 87          PGUID 0 0 0 0 0 f t s n 3 0 - - f _null_ ));
-DATA(insert OID = 1262 (  pg_database 88      PGUID 0 0 0 0 0 f t r n 3 0 - - f _null_ ));
-DATA(insert OID = 1263 (  pg_defaults 89       PGUID 0 0 0 0 0 f t r n 2 0 - - f _null_ ));
-DATA(insert OID = 1264 (  pg_variable 90        PGUID 0 0 0 0 0 f t s n 2 0 - - f _null_ ));
-DATA(insert OID = 1269 (  pg_log  99           PGUID 0 0 0 0 0 f t s n 1 0 - - f _null_ ));
-DATA(insert OID = 1271 (  pg_time 100           PGUID 0 0 0 0 0 f t s n 1 0 - - f _null_ ));
-DATA(insert OID = 1273 (  pg_hosts 101           PGUID 0 0 0 0 0 f t s n 3 0 - - f _null_ ));
+DATA(insert OID = 1247 (  pg_type 71          PGUID 0 0 0 0 0 f f r n 16 0 0 f _null_ ));
+DATA(insert OID = 1249 (  pg_attribute 75     PGUID 0 0 0 0 0 f f r n 16 0 0 f _null_ ));
+DATA(insert OID = 1251 (  pg_demon 76         PGUID 0 0 0 0 0 f t r n 4 0 0 f _null_ ));
+DATA(insert OID = 1253 (  pg_magic 80         PGUID 0 0 0 0 0 f t r n 2 0 0 f _null_ ));
+DATA(insert OID = 1255 (  pg_proc 81          PGUID 0 0 0 0 0 f f r n 16 0 0 f _null_ ));
+DATA(insert OID = 1257 (  pg_server 82        PGUID 0 0 0 0 0 f t r n 3 0 0 f _null_ ));
+DATA(insert OID = 1259 (  pg_class 83         PGUID 0 0 0 0 0 f f r n 18 0 0 f _null_ ));    
+DATA(insert OID = 1260 (  pg_user 86          PGUID 0 0 0 0 0 f t r n 6 0 0 f _null_ ));
+DATA(insert OID = 1261 (  pg_group 87         PGUID 0 0 0 0 0 f t s n 3 0 0 f _null_ ));
+DATA(insert OID = 1262 (  pg_database 88      PGUID 0 0 0 0 0 f t r n 3 0 0 f _null_ ));
+DATA(insert OID = 1263 (  pg_defaults 89      PGUID 0 0 0 0 0 f t r n 2 0 0 f _null_ ));
+DATA(insert OID = 1264 (  pg_variable 90      PGUID 0 0 0 0 0 f t s n 2 0 0 f _null_ ));
+DATA(insert OID = 1269 (  pg_log  99          PGUID 0 0 0 0 0 f t s n 1 0 0 f _null_ ));
+DATA(insert OID = 1271 (  pg_time 100         PGUID 0 0 0 0 0 f t s n 1 0 0 f _null_ ));
+DATA(insert OID = 1273 (  pg_hosts 101        PGUID 0 0 0 0 0 f t s n 3 0 0 f _null_ ));
+DATA(insert OID = 1215 (  pg_attrdef 109      PGUID 0 0 0 0 0 t t s n 4 0 0 f _null_ ));
+DATA(insert OID = 1216 (  pg_relcheck 110     PGUID 0 0 0 0 0 t t s n 4 0 0 f _null_ ));
 
 #define RelOid_pg_type         1247
 #define RelOid_pg_demon        1251
@@ -153,6 +153,8 @@ DATA(insert OID = 1273 (  pg_hosts 101           PGUID 0 0 0 0 0 f t s n 3 0 - -
 #define RelOid_pg_log          1269
 #define RelOid_pg_time         1271      
 #define RelOid_pg_hosts        1273      
+#define RelOid_pg_attrdef      1215    
+#define RelOid_pg_relcheck     1216    
     
 #define MAX_SYSTEM_RELOID       1273    /* this does not seem to be used */
                                         /* anywhere                      */
diff --git a/src/include/catalog/pg_relcheck.h b/src/include/catalog/pg_relcheck.h
new file mode 100644 (file)
index 0000000..1609f14
--- /dev/null
@@ -0,0 +1,53 @@
+/*-------------------------------------------------------------------------
+ *
+ * pg_relcheck.h--
+ *
+ *
+ * Copyright (c) 1994, Regents of the University of California
+ *
+ * NOTES
+ *    the genbki.sh script reads this file and generates .bki
+ *    information from the DATA() statements.
+ *
+ *-------------------------------------------------------------------------
+ */
+#ifndef PG_RELCHECK_H
+#define PG_RELCHECK_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.
+ * ----------------
+ */
+
+/* ----------------
+ *     pg_relcheck definition.  cpp turns this into
+ *     typedef struct FormData_pg_relcheck
+ * ----------------
+ */ 
+CATALOG(pg_relcheck) BOOTSTRAP {
+    Oid                rcrelid;
+    NameData   rcname;
+    text       rcbin;
+    text       rcsrc;
+} FormData_pg_relcheck;
+
+/* ----------------
+ *     Form_pg_relcheck corresponds to a pointer to a tuple with
+ *     the format of pg_relcheck relation.
+ * ----------------
+ */
+typedef FormData_pg_relcheck   *Form_pg_relcheck;
+
+/* ----------------
+ *     compiler constants for pg_relcheck
+ * ----------------
+ */
+#define Natts_pg_relcheck              4
+#define Anum_pg_relcheck_rcrelid       1
+#define Anum_pg_relcheck_rcname                2
+#define Anum_pg_relcheck_rcbin         3
+#define Anum_pg_relcheck_rcsrc         4
+
+#endif /* PG_RELCHECK_H */
index 33ee2db..c2be12b 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_type.h,v 1.13 1997/08/19 21:37:54 momjian Exp $
+ * $Id: pg_type.h,v 1.14 1997/08/21 01:37:55 vadim Exp $
  *
  * NOTES
  *    the genbki.sh script reads this file and generates .bki
@@ -198,8 +198,10 @@ DATA(insert OID = 99 (  pg_log       PGUID 1 1 t b t \054 1269 0 foo bar foo bar
 
 /* OIDS 100 - 199 */
 
-DATA(insert OID = 100 (  pg_time   PGUID 1 1 t b t \054 1271 0 foo bar foo bar c _null_));
-DATA(insert OID = 101 (  pg_hosts  PGUID 1 1 t b t \054 1273 0 foo bar foo bar c _null_));
+DATA(insert OID = 100 (  pg_time     PGUID 1 1 t b t \054 1271 0 foo bar foo bar c _null_));
+DATA(insert OID = 101 (  pg_hosts    PGUID 1 1 t b t \054 1273 0 foo bar foo bar c _null_));
+DATA(insert OID = 109 (  pg_attrdef  PGUID 1 1 t b t \054 1215 0 foo bar foo bar c _null_));
+DATA(insert OID = 110 (  pg_relcheck PGUID 1 1 t b t \054 1216 0 foo bar foo bar c _null_));
 
 /* OIDS 200 - 299 */