Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctdVr-0003sl-Pt for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Mar 2017 17:05:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ctdVr-0006Do-CW for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Mar 2017 17:05:31 +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 1ctdUL-0001aB-Og for pgsql-hackers@postgresql.org; Thu, 30 Mar 2017 17:03:57 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ctdUJ-0000sY-7B for pgsql-hackers@postgresql.org; Thu, 30 Mar 2017 17:03:56 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 680A420784; Thu, 30 Mar 2017 13:03:54 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 30 Mar 2017 13:03:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=EI1OWdF0oo2c5EwYj1 T5MfGTuXWczTlmCLCXwm+4U8k=; b=LLAVUYHa/P3Cz/xs9c+yjZe48K8UDfFHL9 Z2tQ9JTwBwWEzgZzbLJV5bPMf3iZ0jsGtLn0FUaGFdnIaCVEb3gqPbt6+k9PIvQ1 QPokm5oSmOjz9PM7nAaekUsylEGK6S0Aqt5m+pUnklxuzz6cykBOT8+Tezs56mLY tK8LuwUqRlbx2rrGMMA36ATLJ1UpVhhNOYasAqE94ajzX9SmK/1d9LvVvWtElBjx ZaaCjJYPHpSYQQ+EZzZWbcOaKUE5QyXE2fi94TygGhqOus3UgTwfWMumKOKFtAdz gPWBYZomQB+YrM5XNbiVedYHS0SsOixJWdJblhF3YUEe++419EPg== X-ME-Sender: X-Sasl-enc: uoJaQJz12HWbAXPQyidh8fj2/QwTDD+3fSc3ycOxGway 1490893434 Received: from intern.anarazel.de (unknown [208.123.164.34]) by mail.messagingengine.com (Postfix) with ESMTPA id 410AB242B6; Thu, 30 Mar 2017 13:03:54 -0400 (EDT) Date: Thu, 30 Mar 2017 10:03:53 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-hackers@postgresql.org Subject: Use \if ... \elif ... \else ... \endif to simplify alternative in psql scripting. Message-ID: <20170330170353.cqlzrqxkrgy3gupl@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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 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