pgsql: Provide query source text when parsing a SQL-standard function b

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Provide query source text when parsing a SQL-standard function b
Date: 2021-04-15 21:24:16
Message-ID: E1lX9TE-0003QV-2i@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Provide query source text when parsing a SQL-standard function body.

Without this, we lose error cursor positions, as shown in the
modified regression test result.

Discussion: https://postgr.es/m/2197698.1617984583@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/409723365b2708acd3bdf2e830257504bdefac4b

Modified Files
--------------
src/backend/commands/functioncmds.c | 10 ++++++++--
src/test/regress/expected/create_function_3.out | 2 ++
2 files changed, 10 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2021-04-16 01:25:08 pgsql: Doc: Document known problem with Windows collation versions.
Previous Message Tom Lane 2021-04-15 21:19:02 pgsql: Undo decision to allow pg_proc.prosrc to be NULL.