pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Return yyparse() result not via global variable
Date: Fri, 24 Jan 2025 06:03:13 +0000
Message-ID: <E1tbCmf-003DZb-1c@gemulon.postgresql.org> (raw)

Return yyparse() result not via global variable

Instead of passing the parse result from yyparse() via a global
variable, pass it via a function output argument.

This complements earlier work to make the parsers reentrant.

Discussion: Discussion: https://www.postgresql.org/message-id/flat/eb6faeac-2a8a-4b69-9189-c33c520e5b7b@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/473a575e05979b4dbb28b3f2544f4ec8f184ce65

Modified Files
--------------
src/backend/nls.mk                          |  4 +-
src/backend/replication/repl_gram.y         |  7 +--
src/backend/replication/repl_scanner.l      | 10 +++-
src/backend/replication/syncrep.c           |  8 +--
src/backend/replication/syncrep_gram.y      |  9 ++-
src/backend/replication/syncrep_scanner.l   | 22 +++++++-
src/backend/replication/walsender.c         |  4 +-
src/bin/pgbench/exprparse.y                 |  5 +-
src/bin/pgbench/exprscan.l                  |  6 +-
src/bin/pgbench/pgbench.c                   |  4 +-
src/bin/pgbench/pgbench.h                   |  6 +-
src/include/replication/syncrep.h           | 10 +---
src/include/replication/walsender_private.h |  6 +-
src/pl/plpgsql/src/nls.mk                   |  2 +-
src/pl/plpgsql/src/pl_comp.c                |  8 +--
src/pl/plpgsql/src/pl_gram.y                | 85 +++++++++++++++--------------
src/pl/plpgsql/src/pl_scanner.c             |  5 +-
src/pl/plpgsql/src/plpgsql.h                |  6 +-
18 files changed, 106 insertions(+), 101 deletions(-)



Message-ID: <E1tbCmf-003DZb-1c@gemulon.postgresql.org>
Permalink:  ../E1tbCmf-003DZb-1c@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tbCmf-003DZb-1c@gemulon.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: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Return yyparse() result not via global variable
  In-Reply-To: <E1tbCmf-003DZb-1c@gemulon.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