diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-10 18:57:42 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-10 18:57:42 +0000 |
commit | bf56f0759bdfa87f143c3abd09f893a5f530fe88 (patch) | |
tree | 10555a5e46bcfdfd9799b8f0e13ab48101d766de /src/backend/commands/dbcommands.c | |
parent | d062f0f4e91f68b1f55b04691bd92d1efc83dc54 (diff) | |
download | postgresql-bf56f0759bdfa87f143c3abd09f893a5f530fe88.tar.gz postgresql-bf56f0759bdfa87f143c3abd09f893a5f530fe88.zip |
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.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
-rw-r--r-- | src/backend/commands/dbcommands.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 16b1241a027..b20525e77d9 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.77 2001/08/04 00:14:43 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.78 2001/08/10 18:57:34 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -354,15 +354,15 @@ dropdb(const char *dbname) heap_endscan(pgdbscan); + /* Delete any comments associated with the database */ + DeleteComments(db_id, RelationGetRelid(pgdbrel)); + /* * Close pg_database, but keep exclusive lock till commit to ensure * that any new backend scanning pg_database will see the tuple dead. */ heap_close(pgdbrel, NoLock); - /* Delete any comments associated with the database */ - DeleteComments(db_id); - /* * Drop pages for this database that are in the shared buffer cache. * This is important to ensure that no remaining backend tries to |