pgsql: Fix CREATE TABLE LIKE with not-valid check constraint

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Fix CREATE TABLE LIKE with not-valid check constraint
Дата
Msg-id E1uwJAw-001aNS-2s@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix CREATE TABLE LIKE with not-valid check constraint

In CREATE TABLE ... LIKE, any check constraints copied from the source
table should be set to valid if they are ENFORCED (the default).

Bug introduced in commit ca87c415e2f.

Author: jian he <jian.universality@gmail.com>
Discussion:
https://www.postgresql.org/message-id/CACJufxH%3D%2Bod8Wy0P4L3_GpapNwLUP3oAes5UFRJ7yTxrM_M5kg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/33eec809402bfbf3eb0d01ad5b023d3d05fcb3bc

Modified Files
--------------
src/backend/parser/parse_utilcmd.c              | 3 +--
src/test/regress/expected/create_table_like.out | 8 ++++++++
src/test/regress/sql/create_table_like.sql      | 1 +
3 files changed, 10 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления: