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

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: psql: Refine lexing of BEGIN...END blocks in CREATE FUNCTION sta
Date: 2021-04-16 10:24:40
Message-ID: E1lXLeS-0007zr-73@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)albe(at)cybertec(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2021-04-16 10:26:16 Re: pgsql: SQL-standard function body
Previous Message Peter Eisentraut 2021-04-16 09:06:37 pgsql: psql: Small fixes for better translatability