mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
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.
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user