From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Make pgbench's expression lexer reentrant.
Date: Sun, 20 Mar 2016 08:17:41 -0700
Message-ID: <20160320151741.uqwcfkvp2zvit4im@alap3.anarazel.de> (raw)
In-Reply-To: <E1ahNbA-0007m6-Bz@gemulon.postgresql.org>
References: <E1ahNbA-0007m6-Bz@gemulon.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
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%3A21http://pgbuildfarm.org/cgi-bin/show_log.pl?nm=prairiedog&dt=2016-03-19%2023%3A21%3A23http://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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Make pgbench's expression lexer reentrant.
In-Reply-To: <20160320151741.uqwcfkvp2zvit4im@alap3.anarazel.de>
References: <E1ahNbA-0007m6-Bz@gemulon.postgresql.org> <20160320151741.uqwcfkvp2zvit4im@alap3.anarazel.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox