pgsql: Disallow MERGE cleanly for foreign partitions

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Disallow MERGE cleanly for foreign partitions
Дата
Msg-id E1ojlol-002W1s-AM@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Disallow MERGE cleanly for foreign partitions

While directly targetting a foreign table with MERGE was already
expressly forbidden, we failed to catch the case of a partitioned table
that has a foreign table as a partition; and the result if you try is an
incomprehensible error.  Fix that by adding a specific check.

Backpatch to 15.

Reported-by: Tatsuhiro Nakamori <bt22nakamorit@oss.nttdata.com>
Discussion: https://postgr.es/m/bt22nakamorit@oss.nttdata.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/16d11d68437a6a37af1fea08d4a29ef463f0d62c

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out |  5 +++++
contrib/postgres_fdw/sql/postgres_fdw.sql      |  4 ++++
src/backend/optimizer/plan/createplan.c        | 20 ++++++++++++++++++++
3 files changed, 29 insertions(+)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix some comments in proc.h
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: meson: catch up to a few configure changes