pgsql: Fix incorrect logic in plan dependency recording

Поиск
Список
Период
Сортировка
От David Rowley
Тема pgsql: Fix incorrect logic in plan dependency recording
Дата
Msg-id E1qgZI0-003h65-CR@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix incorrect logic in plan dependency recording

Both 50e17ad28 and 29f45e299 mistakenly tried to record a plan dependency
on a function but mistakenly inverted the OidIsValid test.  This meant
that we'd record a dependency only when the function's Oid was
InvalidOid.  Clearly this was meant to *not* record the dependency in
that case.

50e17ad28 made this mistake first, then in v15 29f45e299 copied the same
mistake.

Reported-by: Tom Lane
Backpatch-through: 14, where 50e17ad28 first made this mistake
Discussion: https://postgr.es/m/2277537.1694301772@sss.pgh.pa.us

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/17a3f1c3475a4a31ea0af9c95efdccd07dd4247c

Modified Files
--------------
src/backend/optimizer/plan/setrefs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


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

Предыдущее
От: David Rowley
Дата:
Сообщение: pgsql: Fix incorrect logic in plan dependency recording
Следующее
От: David Rowley
Дата:
Сообщение: pgsql: Fix incorrect logic in plan dependency recording