Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYcxf-00049o-0U for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 18:15:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cYcxd-0008O9-AJ for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 18:15:21 +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 1cYcxc-0008My-F8 for pgsql-hackers@postgresql.org; Tue, 31 Jan 2017 18:15:20 +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 1cYcxZ-00078q-Ff for pgsql-hackers@postgresql.org; Tue, 31 Jan 2017 18:15:19 +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 v0VIFBvu001085; Tue, 31 Jan 2017 13:15:11 -0500 From: Tom Lane To: Corey Huinker cc: Fabien COELHO , Daniel Verite , PostgreSQL Subject: Re: \if, \elseif, \else, \endif (was Re: PSQL commands: \quit_if, \quit_unless) In-reply-to: References: Comments: In-reply-to Corey Huinker message dated "Tue, 31 Jan 2017 12:16:51 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1083.1485886511.1@sss.pgh.pa.us> Date: Tue, 31 Jan 2017 13:15:11 -0500 Message-ID: <1084.1485886511@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 Corey Huinker writes: > On Tue, Jan 31, 2017 at 1:04 AM, Fabien COELHO wrote: >> The ParseVariableBool function has been updated, and the new version is >> much cleaner, including all fixes that I suggested in your copy, so you can >> use it in your patch. > I see there's still a lot of activity in the thread, I can't tell if it's > directly related to ParseVariableBool() or in the way it is called. Should > I wait for the dust to settle over there? I think ParseVariableBool is only likely to change to reject a NULL value rather than silently interpreting it as FALSE, which is the way it is in HEAD right now. That behavior is a leftover hack, really, and moving the treatment of unset values upstream seems a lot cleaner. See my draft patch at https://www.postgresql.org/message-id/30629.1485881533@sss.pgh.pa.us 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