pgsql: Convert misleading while loop into an if condition

Поиск
Список
Период
Сортировка
От David Rowley
Тема pgsql: Convert misleading while loop into an if condition
Дата
Msg-id E1lhLey-0001lj-Ll@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Convert misleading while loop into an if condition

This seems to be leftover from ea15e1867 and from when we used to evaluate
SRFs at each node.

Since there is an unconditional "return" at the end of the loop body, only
1 loop is ever possible, so we can just change this into an if condition.

There is no actual bug being fixed here so no back-patch. It seems fine to
just fix this anomaly in master only.

Author: Greg Nancarrow
Discussion: https://postgr.es/m/CAJcOf-d7T1q0az-D8evWXnsuBZjigT04WkV5hCAOEJQZRWy28w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6cb93beddd33d00e0ce2ee55edfa32cd2a935394

Modified Files
--------------
src/backend/executor/nodeResult.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: pgsql: Fix autovacuum log output heap truncation issue.
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: doc: PG 14 release notes, reorder items by significance