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

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

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?

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-03-30 17:12:53 Re: Use \if ... \elif ... \else ... \endif to simplify alternative in psql scripting.
Previous Message Tom Lane 2017-03-30 16:59:39 pgsql: Support \if ... \elif ... \else ... \endif in psql scripting.

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2017-03-30 17:12:53 Re: Use \if ... \elif ... \else ... \endif to simplify alternative in psql scripting.
Previous Message Tom Lane 2017-03-30 16:59:39 pgsql: Support \if ... \elif ... \else ... \endif in psql scripting.