diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-12-01 22:08:02 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-12-01 22:08:02 +0000 |
commit | 7ce9b7c0d8c8dbefc04978765422f760dcf3788c (patch) | |
tree | a45d3e6a01487c3a816f73ba5428d3ba64347a55 /src/bin | |
parent | e7ca8674858f03a1bd6222bdb4de3d829cffbcc4 (diff) | |
download | postgresql-7ce9b7c0d8c8dbefc04978765422f760dcf3788c.tar.gz postgresql-7ce9b7c0d8c8dbefc04978765422f760dcf3788c.zip |
This patch adds a new GUC var, "default_with_oids", which follows the
proposal for eventually deprecating OIDs on user tables that I posted
earlier to pgsql-hackers. pg_dump now always specifies WITH OIDS or
WITHOUT OIDS when dumping a table. The documentation has been updated.
Neil Conway
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 5 | ||||
-rw-r--r-- | src/bin/psql/tab-complete.c | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 15b4ebd9705..029f30f6642 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -12,7 +12,7 @@ * by PostgreSQL * * IDENTIFICATION - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.358 2003/11/29 19:52:05 pgsql Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.359 2003/12/01 22:08:01 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -5627,8 +5627,7 @@ dumpOneTable(Archive *fout, TableInfo *tbinfo, TableInfo *g_tblinfo) appendPQExpBuffer(q, ")"); } - if (!tbinfo->hasoids) - appendPQExpBuffer(q, " WITHOUT OIDS"); + appendPQExpBuffer(q, tbinfo->hasoids ? " WITH OIDS" : " WITHOUT OIDS"); appendPQExpBuffer(q, ";\n"); diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index f7e346478aa..c50ce514d1f 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.94 2003/11/29 19:52:07 pgsql Exp $ + * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.95 2003/12/01 22:08:01 momjian Exp $ */ /*---------------------------------------------------------------------- @@ -499,6 +499,7 @@ psql_completion(char *text, int start, int end) "default_statistics_target", "default_transaction_isolation", "default_transaction_read_only", + "default_with_oids", "dynamic_library_path", "effective_cache_size", "enable_hashagg", |