aboutsummaryrefslogtreecommitdiff
path: root/src/include/nodes/parsenodes.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-09-22 18:35:22 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-09-22 18:35:22 -0400
commit31510194cc9d87b355cb56e7d88c18c985d7a32a (patch)
treebbfc0569d0e8d881d3fba8d4532257646c4b3943 /src/include/nodes/parsenodes.h
parentfcc1576687a122059db311791e45e2c5edc5d89b (diff)
downloadpostgresql-31510194cc9d87b355cb56e7d88c18c985d7a32a.tar.gz
postgresql-31510194cc9d87b355cb56e7d88c18c985d7a32a.zip
Minor corrections for ALTER TYPE ADD VALUE IF NOT EXISTS patch.
Produce a NOTICE when the label already exists, for consistency with other CREATE IF NOT EXISTS commands. Also, fix the code so it produces something more user-friendly than an index violation when the label already exists. This not incidentally enables making a regression test that the previous patch didn't make for fear of exposing an unpredictable OID in the results. Also some wordsmithing on the documentation.
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r--src/include/nodes/parsenodes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 98fe850c927..214d4f60e32 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -2306,7 +2306,7 @@ typedef struct AlterEnumStmt
char *newVal; /* new enum value's name */
char *newValNeighbor; /* neighboring enum value, if specified */
bool newValIsAfter; /* place new enum value after neighbor? */
- bool skipIfExists; /* ignore statement if label already exists */
+ bool skipIfExists; /* no error if label already exists */
} AlterEnumStmt;
/* ----------------------