pgsql: Apply identity sequence values on COPY

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Apply identity sequence values on COPY
Дата
Msg-id E1eNJs8-0005T5-6d@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Apply identity sequence values on COPY

A COPY into a table should apply identity sequence values just like it
does for ordinary defaults.  This was previously forgotten, leading to
null values being inserted, which in turn would fail because identity
columns have not-null constraints.

Author: Michael Paquier <michael.paquier@gmail.com>
Reported-by: Steven Winfield <steven.winfield@cantabcapital.com>
Bug: #14952

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2d2d06b7e27e3177d5bef0061801c75946871db3

Modified Files
--------------
src/backend/commands/copy.c            | 16 ++++++++++++++--
src/test/regress/expected/identity.out | 13 +++++++++++++
src/test/regress/sql/identity.sql      | 17 +++++++++++++++++
3 files changed, 44 insertions(+), 2 deletions(-)


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] [COMMITTERS] pgsql: Fix freezing of a dead HOT-updatedtuple
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Accept SCRAM channel binding enabled clients