Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cW6wt-00056J-BK for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Jan 2017 19:40:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cW6ws-0005kG-DC for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Jan 2017 19:40:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cW6vS-0004A9-Qj for pgsql-hackers@postgresql.org; Tue, 24 Jan 2017 19:38:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cW6vP-0008K7-8n for pgsql-hackers@postgresql.org; Tue, 24 Jan 2017 19:38:42 +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 v0OJcXhT010529; Tue, 24 Jan 2017 14:38:33 -0500 From: Tom Lane To: "Daniel Verite" cc: "Corey Huinker" , "Fabien COELHO" , "PostgreSQL" Subject: Re: \if, \elseif, \else, \endif (was Re: PSQL commands: \quit_if, \quit_unless) In-reply-to: <0f307858-dfa2-4c5b-8ca5-febb398b3ccb@manitou-mail.org> References: <0f307858-dfa2-4c5b-8ca5-febb398b3ccb@manitou-mail.org> Comments: In-reply-to "Daniel Verite" message dated "Tue, 24 Jan 2017 19:08:08 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10527.1485286713.1@sss.pgh.pa.us> Date: Tue, 24 Jan 2017 14:38:33 -0500 Message-ID: <10528.1485286713@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) 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 "Daniel Verite" writes: > ISTM that it's important that eventually ParseVariableBool() > and \if agree on what evaluates to true and false (and the > more straightforward way to achieve that is by \if calling > directly ParseVariableBool), but that it's not productive that we > discuss /if issues relatively to the behavior of ParseVariableBool() > in HEAD at the moment, as it's likely to change. AFAIK we do have consensus on changing its behavior to disallow assignment of invalid values. It's just a matter of getting the patch to be stylistically nice. 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