summaryrefslogtreecommitdiff
path: root/src/backend/tcop
diff options
context:
space:
mode:
authorPeter Eisentraut2017-02-09 03:51:09 +0000
committerPeter Eisentraut2017-02-15 15:01:28 +0000
commit6d16ecc646d21b39092970c591fd0f73b4cfc26b (patch)
tree39a31e88e1e82ae5a76eddf446d2c128dbf2b80b /src/backend/tcop
parente403732ef66d368f0a9a154d8f756f5d28615b8a (diff)
Add CREATE COLLATION IF NOT EXISTS clause
The core of the functionality was already implemented when pg_import_system_collations was added. This just exposes it as an option in the SQL command.
Diffstat (limited to 'src/backend/tcop')
-rw-r--r--src/backend/tcop/utility.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 5d3be38bf5..3bc0ae5e7e 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1271,7 +1271,8 @@ ProcessUtilitySlow(ParseState *pstate,
Assert(stmt->args == NIL);
address = DefineCollation(pstate,
stmt->defnames,
- stmt->definition);
+ stmt->definition,
+ stmt->if_not_exists);
break;
default:
elog(ERROR, "unrecognized define stmt type: %d",