Re: cosmetic psql tweaks

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: cosmetic psql tweaks
Дата
Msg-id 40B14A24.60301@samurai.com
обсуждение исходный текст
Ответ на Re: cosmetic psql tweaks  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane wrote:
> Er, doesn't that change the behavior?

I don't believe so. There is an if statement earlier that assigns
opt->footers to footers is the former is non-NULL. In other words:

if (opt->footers)
     footers = opt->footers;
else if (...)
     footers = xyz();
else
     footers = NULL;

Therefore if footers is NULL then opt->footers must also be NULL, so the
previous trinary statement is just confusing.

-Neil


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: cosmetic psql tweaks
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pgstat exec cleanup