Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdkvc-0003IX-3I for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Feb 2017 21:46:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cdkvb-0004mI-Kf for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Feb 2017 21:46:27 +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 1cdku6-00033m-2n; Tue, 14 Feb 2017 21:44:54 +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 1cdku0-0000b6-2I; Tue, 14 Feb 2017 21:44:53 +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 v1ELicN2028641; Tue, 14 Feb 2017 16:44:38 -0500 From: Tom Lane To: Corey Huinker cc: Fabien COELHO , Greg Stark , Erik Rijkers , Robert Haas , Daniel Verite , Jim Nasby , PostgreSQL , pgsql-hackers-owner@postgresql.org Subject: Re: \if, \elseif, \else, \endif (was Re: PSQL commands: \quit_if, \quit_unless) In-reply-to: References: <24063.1486671184@sss.pgh.pa.us> <5095.1486674948@sss.pgh.pa.us> <4fb8635d88c7dc907d069e15fdd1ab94@xs4all.nl> Comments: In-reply-to Corey Huinker message dated "Mon, 13 Feb 2017 12:47:45 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28639.1487108678.1@sss.pgh.pa.us> Date: Tue, 14 Feb 2017 16:44:38 -0500 Message-ID: <28640.1487108678@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: > So moving the conditional stack back into PsqlScanState has some side > effects: conditional.[ch] have to move to the fe_utils/ dirs, and now > pgbench, which does not use conditionals, would have to link to them. Is > that a small price to pay for modularity and easier-to-find code? Or should > I just tuck it back into psqlscan_int.[ch]? Pardon me for coming in late, but what in the world has this to do with the lexer's state at all? IOW, I don't think I like either of what you're suggesting ... 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