pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tgl@postgresql.org
To: pgsql-committers@postgresql.org
Subject: pgsql: Convert the core lexer and parser into fully reentrant code, by
Date: Mon, 13 Jul 2009 02:02:20 +0000 (UTC)
Message-ID: <20090713020220.4ACA875331E@cvs.postgresql.org> (raw)

Log Message:
-----------
Convert the core lexer and parser into fully reentrant code, by making use
of features added to flex and bison since this code was originally written.
This change doesn't in itself offer any new capability, but it's needed
infrastructure for planned improvements in plpgsql.

Another feature now available in flex is the ability to make it use palloc
instead of malloc, so do that to avoid possible memory leaks.  (We should
at some point change the other lexers likewise, but this commit doesn't
touch them.)

Modified Files:
--------------
    pgsql/src/backend:
        nls.mk (r1.27 -> r1.28)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/nls.mk?r1=1.27&r2=1.28)
    pgsql/src/backend/parser:
        gram.y (r2.667 -> r2.668)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/gram.y?r1=2.667&r2=2.668)
        parser.c (r1.79 -> r1.80)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parser.c?r1=1.79&r2=1.80)
        scan.l (r1.154 -> r1.155)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/scan.l?r1=1.154&r2=1.155)
    pgsql/src/include/parser:
        gramparse.h (r1.45 -> r1.46)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/parser/gramparse.h?r1=1.45&r2=1.46)




view thread (2+ messages)  latest in thread

Message-ID: <20090713020220.4ACA875331E@cvs.postgresql.org>
Permalink:  ../20090713020220.4ACA875331E@cvs.postgresql.org/
Also on:    postgresql.org/message-id/20090713020220.4ACA875331E@cvs.postgresql.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@postgresql.org
  Subject: Re: pgsql: Convert the core lexer and parser into fully reentrant code, by
  In-Reply-To: <20090713020220.4ACA875331E@cvs.postgresql.org>

* 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