From bf56f0759bdfa87f143c3abd09f893a5f530fe88 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 10 Aug 2001 18:57:42 +0000 Subject: Make OIDs optional, per discussions in pghackers. WITH OIDS is still the default, but OIDS are removed from many system catalogs that don't need them. Some interesting side effects: TOAST pointers are 20 bytes not 32 now; pg_description has a three-column key instead of one. Bugs fixed in passing: BINARY cursors work again; pg_class.relhaspkey has some usefulness; pg_dump dumps comments on indexes, rules, and triggers in a valid order. initdb forced. --- src/include/postgres.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/include/postgres.h') diff --git a/src/include/postgres.h b/src/include/postgres.h index e4e959d70fc..1502c84a4c6 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -10,7 +10,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1995, Regents of the University of California * - * $Id: postgres.h,v 1.49 2001/06/12 05:55:50 tgl Exp $ + * $Id: postgres.h,v 1.50 2001/08/10 18:57:41 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -55,7 +55,7 @@ */ /* ---------------- - * struct varattrib is the header of a varlena object that may have been TOASTed. + * struct varattrib is the header of a varlena object that may have been TOASTed. * ---------------- */ #define TUPLE_TOASTER_ACTIVE @@ -78,9 +78,6 @@ typedef struct varattrib int32 va_extsize; /* External saved size */ Oid va_valueid; /* Unique identifier of value */ Oid va_toastrelid; /* RelID where to find chunks */ - Oid va_toastidxid; /* Main tables row Oid */ - Oid va_rowid; /* Referencing row Oid */ - int16 va_attno; /* Main tables attno */ } va_external;/* External stored attribute */ char va_data[1]; /* Plain stored attribute */ @@ -573,6 +570,8 @@ extern int assertTest(int val); #define BOOTSTRAP +#define BKI_WITHOUT_OIDS + /* these need to expand into some harmless, repeatable declaration */ #define DATA(x) extern int errno #define DESCR(x) extern int errno -- cgit v1.2.3