Re: cosmetic psql tweaks - Mailing list pgsql-patches

From Neil Conway
Subject Re: cosmetic psql tweaks
Date
Msg-id 40B14A24.60301@samurai.com
Whole thread Raw
In response to Re: cosmetic psql tweaks  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: cosmetic psql tweaks
Next
From: Bruce Momjian
Date:
Subject: Re: pgstat exec cleanup