pgsql: Minor corrections for ALTER TYPE ADD VALUE IF NOT EXISTS patch.
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Minor corrections for ALTER TYPE ADD VALUE IF NOT EXISTS patch. |
| Дата | |
| Msg-id | E1TFYIQ-0000GY-Ht@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
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. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/31510194cc9d87b355cb56e7d88c18c985d7a32a Modified Files -------------- doc/src/sgml/ref/alter_type.sgml | 15 ++++++++------- src/backend/catalog/pg_enum.c | 29 ++++++++++++++++++++--------- src/include/nodes/parsenodes.h | 2 +- src/test/regress/expected/enum.out | 6 +++--- src/test/regress/sql/enum.sql | 6 +----- 5 files changed, 33 insertions(+), 25 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера