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: psql: Refine lexing of BEGIN...END blocks in CREATE FUNCTION sta
Date: Fri, 16 Apr 2021 10:24:40 +0000
Message-ID: <E1lXLeS-0007zr-73@gemulon.postgresql.org> (raw)

psql: Refine lexing of BEGIN...END blocks in CREATE FUNCTION statements

Only track BEGIN...END blocks if they are in a CREATE [OR REPLACE]
{FUNCTION|PROCEDURE} statement.  Ignore if in parentheses.

Reviewed-by: Laurenz Albe <laurenz.albe@cybertec.at>
Discussion: https://www.postgresql.org/message-id/cee01d26fe55bc086b3bcf10bfe4e8d450e2f608.camel@cybertec.at

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/029c5ac03db72f1898ee17e417650a2e0764b239

Modified Files
--------------
src/fe_utils/psqlscan.l             | 53 +++++++++++++++++++++++++++++++------
src/include/fe_utils/psqlscan_int.h |  8 +++++-
2 files changed, 52 insertions(+), 9 deletions(-)



Message-ID: <E1lXLeS-0007zr-73@gemulon.postgresql.org>
Permalink:  ../E1lXLeS-0007zr-73@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lXLeS-0007zr-73@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 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: peter@eisentraut.org
  Subject: Re: pgsql: psql: Refine lexing of BEGIN...END blocks in CREATE FUNCTION sta
  In-Reply-To: <E1lXLeS-0007zr-73@gemulon.postgresql.org>
  References: <E1lXLeS-0007zr-73@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