Re: Use \if ... \elif ... \else ... \endif to simplify alternative in psql scripting.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Use \if ... \elif ... \else ... \endif to simplify alternative in psql scripting.
Date: 2017-03-30 17:12:53
Message-ID: 8623.1490893973@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Andres Freund <andres(at)anarazel(dot)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

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2017-03-30 18:04:27 Re: [COMMITTERS] pgsql: Logical replication support for initial data copy
Previous Message Andres Freund 2017-03-30 17:03:53 Use \if ... \elif ... \else ... \endif to simplify alternative in psql scripting.

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2017-03-30 17:16:07 Re: Logical decoding on standby
Previous Message Andres Freund 2017-03-30 17:03:53 Use \if ... \elif ... \else ... \endif to simplify alternative in psql scripting.