Disallow MERGE cleanly for foreign partitions
Alvaro Herrera <alvherre@alvh.no-ip.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/postgres_fdw/expected/postgres_fdw.out | modified | +5 −0 |
| contrib/postgres_fdw/sql/postgres_fdw.sql | modified | +4 −0 |
| src/backend/optimizer/plan/createplan.c | modified | +20 −0 |
Discussion
Cited messages not in the archive:
bt22nakamorit@oss.nttdata.com