pgsql: Disallow COPY FREEZE on partitioned tables

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Disallow COPY FREEZE on partitioned tables
Дата
Msg-id E1gOkMK-0005Aa-NQ@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Disallow COPY FREEZE on partitioned tables

This didn't actually work: COPY would fail to flush the right files, and
instead would try to flush a non-existing file, causing the whole
transaction to fail.

Cope by raising an error as soon as the command is sent instead, to
avoid a nasty later surprise.  Of course, it would be much better to
make it work, but we don't have a patch for that yet, and we don't know
if we'll want to backpatch one when we do.

Reported-by: Tomas Vondra
Author: David Rowley
Reviewed-by: Amit Langote, Steve Singer, Tomas Vondra

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5c9a5513a3967367e5fcc9237bc4146f4b24b408

Modified Files
--------------
doc/src/sgml/perform.sgml           |  4 ++--
doc/src/sgml/ref/copy.sgml          |  4 +++-
src/backend/commands/copy.c         | 29 +++++++++++++++++++++++++++--
src/test/regress/input/copy.source  |  6 ++++++
src/test/regress/output/copy.source |  6 ++++++
5 files changed, 44 insertions(+), 5 deletions(-)


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: pg_archivecleanup: Update file header comment a bit
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix configure's AC_CHECK_DECLS tests to work correctly withclan