pgsql: Enforce child constraints during COPY TO a partitioned table.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Enforce child constraints during COPY TO a partitioned table.
Дата
Msg-id E1f4TiW-0004Hy-NY@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Enforce child constraints during COPY TO a partitioned table.

The previous coding inadvertently checked the constraints for the
partitioned table rather than the target partition, which could
lead to data in a partition that fails to satisfy some constraint
on that partition.  This problem seems to date back to when
table partitioning was introduced; prior to that, there was only
one target table for a COPY, so the problem didn't occur, and the
code just didn't get updated.

Etsuro Fujita, reviewed by Amit Langote and Ashutosh Bapat

Discussion: https://postgr.es/message-id/5ABA4074.1090500%40lab.ntt.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cfbecf8100ecb83c07c2017f843b0642580416bf

Modified Files
--------------
src/backend/commands/copy.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Refactor PgFdwModifyState creation/destruction into separatefun
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Add memory context identifier to portal context