Re: pgsql: Make pgbench's expression lexer reentrant.

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Make pgbench's expression lexer reentrant.
Date: 2016-03-20 15:17:41
Message-ID: 20160320151741.uqwcfkvp2zvit4im@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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%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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-03-20 16:59:11 pgsql: SQL commands in pgbench scripts are now ended by semicolons, not
Previous Message Andrew Dunstan 2016-03-19 23:02:47 pgsql: Remove dependency on psed for MSVC builds.