Add CREATE COLLATION IF NOT EXISTS clause
Peter Eisentraut <peter_e@gmx.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_collation.sgml | modified | +13 −2 |
| src/backend/commands/collationcmds.c | modified | +2 −2 |
| src/backend/nodes/copyfuncs.c | modified | +1 −0 |
| src/backend/nodes/equalfuncs.c | modified | +1 −0 |
| src/backend/parser/gram.y | modified | +20 −0 |
| src/backend/tcop/utility.c | modified | +2 −1 |
| src/include/commands/collationcmds.h | modified | +1 −1 |
| src/include/nodes/parsenodes.h | modified | +1 −0 |
| src/test/regress/expected/collate.linux.utf8.out | modified | +4 −0 |
| src/test/regress/sql/collate.linux.utf8.sql | modified | +2 −0 |