pgsql: Fix broken MemoizePath support in reparameterize_path().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix broken MemoizePath support in reparameterize_path().
Дата
Msg-id E1p1u2U-001zzI-DM@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix broken MemoizePath support in reparameterize_path().

It neglected to recurse to the subpath, meaning you'd get back
a path identical to the input.  This could produce wrong query
results if the omission meant that the subpath fails to enforce
some join clause it should be enforcing.  We don't have a test
case for this at the moment, but the code is obviously broken
and the fix is equally obvious.  Back-patch to v14 where
Memoize was introduced.

Richard Guo

Discussion: https://postgr.es/m/CAMbWs4_R=ORpz=Lkn2q3ebPC5EuWyfZF+tmfCPVLBVK5W39mHA@mail.gmail.com

Branch
------
REL_14_STABLE

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

Modified Files
--------------
src/backend/optimizer/util/pathnode.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)


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

Предыдущее
От: David Rowley
Дата:
Сообщение: pgsql: Improve performance of pg_strtointNN functions
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Re-pgindent a few files.