Executor code - found an instance of a WHILE that should just be an IF

Поиск
Список
Период
Сортировка
От Greg Nancarrow
Тема Executor code - found an instance of a WHILE that should just be an IF
Дата
Msg-id CAJcOf-d7T1q0az-D8evWXnsuBZjigT04WkV5hCAOEJQZRWy28w@mail.gmail.com
обсуждение исходный текст
Ответы Re: Executor code - found an instance of a WHILE that should just be an IF  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-hackers
Hi,

During debugging I noticed some code in ExecResult() where a WHILE
loop is being used with an unconditional RETURN at the end of the
block (which is intentional, looking at the history of changes), but
now there's no actual use of the loop in any way. The code should
probably be changed to just use IF for clarity.
I've attached a patch.

Regards,
Greg Nancarrow
Fujitsu Australia

Вложения

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

Предыдущее
От: Peter Smith
Дата:
Сообщение: Re: GetSubscriptionRelations declares too many scan keys
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: GetSubscriptionRelations declares too many scan keys