pgsql: Remove gratuitous assumptions about what make_modifytable can se

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Remove gratuitous assumptions about what make_modifytable can se
Дата
Msg-id E1pU9cg-0027Df-9P@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remove gratuitous assumptions about what make_modifytable can see.

For no clearly good reason, make_modifytable assumed that it
could not reach its get-the-FDW-info-the-hard-way path in MERGE.
It's currently possible to demonstrate that assertion failing,
which seems to be due to an upstream planner bug; but there's no
good reason to do it like this at all.  Let's apply the principle
of separation of concerns and make the MERGE check separately,
after getting or not getting the fdwroutine pointer.

Per report from Alexander Lakhin.  No test case, since I think
the potential test condition will go away soon.

Discussion: https://postgr.es/m/36bee393-b351-16ac-93b2-d46d83637e45@gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/optimizer/plan/createplan.c | 42 ++++++++++++++++-----------------
1 file changed, 20 insertions(+), 22 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Add assert checking to pg_leftmost_one_pos32() and friends
Следующее
От: Jeff Davis
Дата:
Сообщение: pgsql: Limit memory usage of pg_walinspect functions.