pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Use \if ... \elif ... \else ... \endif to simplify alternative in psql scripting.
2+ messages / 2 participants
[nested] [flat]

* Use \if ... \elif ... \else ... \endif to simplify alternative in psql scripting.
@ 2017-03-30 17:03  Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 2+ messages in thread

From: Andres Freund @ 2017-03-30 17:03 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-hackers@postgresql.org

On 2017-03-30 16:59:39 +0000, Tom Lane wrote:
> Support \if ... \elif ... \else ... \endif in psql scripting.

Could we use this to simplify maintenance of some of the larger
alternative output files?


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Use \if ... \elif ... \else ... \endif to simplify alternative in psql scripting.
@ 2017-03-30 17:12  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2017-03-30 17:12 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-hackers@postgresql.org

Andres Freund <andres@anarazel.de> writes:
> On 2017-03-30 16:59:39 +0000, Tom Lane wrote:
>> Support \if ... \elif ... \else ... \endif in psql scripting.

> Could we use this to simplify maintenance of some of the larger
> alternative output files?

Worth thinking about, for sure.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-03-30 17:12 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-03-30 17:03 Use \if ... \elif ... \else ... \endif to simplify alternative in psql scripting. Andres Freund <andres@anarazel.de>
2017-03-30 17:12 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox