summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorBruce Momjian2009-12-26 16:55:21 +0000
committerBruce Momjian2009-12-26 16:55:21 +0000
commit1fd9883ff49fdc4008c6a17936441b74696ff1a9 (patch)
tree82cc23f4939a26c84374c1f26914ebb15914ad87 /src/bin
parentf9845aca2b0f123b759ce1624d563c497902703f (diff)
Zero-label enums:
Allow enums to be created with zero labels, for use during binary upgrade.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/pg_dump/pg_dump.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 47d2c4fcf40..037c7045e50 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.561 2009/12/24 22:09:23 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.562 2009/12/26 16:55:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -6542,12 +6542,6 @@ dumpEnumType(Archive *fout, TypeInfo *tyinfo)
check_sql_result(res, g_conn, query->data, PGRES_TUPLES_OK);
num = PQntuples(res);
- /* should be at least 1 value */
- if (num == 0)
- {
- write_msg(NULL, "no label definitions found for enum ID %u\n", tyinfo->dobj.catId.oid);
- exit_nicely();
- }
/*
* DROP must be fully qualified in case same name appears in pg_catalog.