Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahf7P-000551-MG for pgsql-committers@arkaria.postgresql.org; Sun, 20 Mar 2016 15:18:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ahf7P-0008CZ-0F for pgsql-committers@arkaria.postgresql.org; Sun, 20 Mar 2016 15:18:15 +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 1ahf7C-0007yk-Ap for pgsql-committers@postgresql.org; Sun, 20 Mar 2016 15:18:02 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ahf77-0006TY-Ou for pgsql-committers@postgresql.org; Sun, 20 Mar 2016 15:18:01 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 7C7C7217DF for ; Sun, 20 Mar 2016 11:17:54 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Sun, 20 Mar 2016 11:17:54 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=ntumdrp/GZpn4Ky35Vpb4YUHDxM=; b=QV/x/ J5EnNZOoDewuYKKApQlBJcVbBo3x8fijqn1AxLBKBJOMI9LF2K/uXZRlnVOAntK2 ZwQEe6VaQAqys3IuG/4Qitk7b5ZlzdFdxH0vxiPtaYAfydFIWq56lAzeugU/NpGX wO99FBVAF7GtYyVkHL/t3ANBnzhfoxex3A/xw0= X-Sasl-enc: xpkYPKB9JYBCKtcTaD+FYZVN7vf42ezA3aJc/1HE2G+1 1458487072 Received: from intern.anarazel.de (unknown [88.128.80.229]) by mail.messagingengine.com (Postfix) with ESMTPA id 4526C68017D; Sun, 20 Mar 2016 11:17:52 -0400 (EDT) Date: Sun, 20 Mar 2016 08:17:41 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Make pgbench's expression lexer reentrant. Message-ID: <20160320151741.uqwcfkvp2zvit4im@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-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Hi Tom, On 2016-03-19 20:35:48 +0000, Tom Lane wrote: > Make pgbench's expression lexer reentrant. > > This is a necessary preliminary step for making it play with psqlscan.l > given the way I set up the lexer input-buffer sharing mechanism in commit > 0ea9efbe9ec1bf07. > > I've not tried to make it *actually* reentrant; there's still some static > variables laying about. But flex thinks it's reentrant, and that's what > counts. > > In support of that, fix exprparse.y to pass through the yyscan_t from the > caller. Also do some minor code beautification, like not casting away > const. This appears to have caused build failures on gaur, prairiedog, and pademelon http://pgbuildfarm.org/cgi-bin/show_log.pl?nm=gaur&dt=2016-03-20%2005%3A53%3A21 http://pgbuildfarm.org/cgi-bin/show_log.pl?nm=prairiedog&dt=2016-03-19%2023%3A21%3A23 http://pgbuildfarm.org/cgi-bin/show_log.pl?nm=pademelon&dt=2016-03-20%2007%3A59%3A38 Not sure you saw those already. - Andres -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers