pgsql: psql: Refine lexing of BEGIN...END blocks in CREATE FUNCTION sta - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: psql: Refine lexing of BEGIN...END blocks in CREATE FUNCTION sta
Date
Msg-id [email protected]
Whole thread Raw
List 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 <[email protected]>
Discussion: https://www.postgresql.org/message-id/[email protected]

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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: psql: Small fixes for better translatability
Next
From: Peter Eisentraut
Date:
Subject: Re: pgsql: SQL-standard function body