Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctdea-0004Mz-US for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Mar 2017 17:14:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ctdea-0001Sl-H9 for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Mar 2017 17:14:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ctdd5-0006UG-35 for pgsql-hackers@postgresql.org; Thu, 30 Mar 2017 17:12:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ctdd2-00013T-9Y for pgsql-hackers@postgresql.org; Thu, 30 Mar 2017 17:12:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v2UHCrTd008624; Thu, 30 Mar 2017 13:12:53 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org Subject: Re: Use \if ... \elif ... \else ... \endif to simplify alternative in psql scripting. In-reply-to: <20170330170353.cqlzrqxkrgy3gupl@alap3.anarazel.de> References: <20170330170353.cqlzrqxkrgy3gupl@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 30 Mar 2017 10:03:53 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8622.1490893973.1@sss.pgh.pa.us> Date: Thu, 30 Mar 2017 13:12:53 -0400 Message-ID: <8623.1490893973@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andres Freund 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