Re: pure parsers and reentrant scanners

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pure parsers and reentrant scanners
Date: 2025-01-17 15:40:54
Message-ID: 1e7969f2-9454-44bd-a1c4-5b305746b341@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Here are some more patches. This should cover the last sub-topic of
this topic: not passing the yyparse() result via global variables. This
uses techniques that are already in use in some parsers in the tree, for
example cube and jsonpath. The syncrep parser was a bit trickier,
because there we need to pass the syncrep_parse_error variable all the
way down to the scanner (not just the parser), but overall it's all
still pretty compact and standard.

Attachment Content-Type Size
0001-plpgsql-Return-parse-result-not-via-global-variable.patch text/plain 18.3 KB
0002-pgbench-Return-parse-result-not-via-global-variable.patch text/plain 3.8 KB
0003-replication-parser-Return-parse-result-not-via-globa.patch text/plain 5.3 KB
0004-syncrep-parser-Return-parse-result-not-via-global-va.patch text/plain 6.7 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Sami Imseih 2025-01-17 15:42:13 Re: POC: track vacuum/analyze cumulative time per relation
Previous Message Nathan Bossart 2025-01-17 15:39:16 Re: Remove XLogRecGetFullXid() in xlogreader.c?