pgsql: Fix plpgsql to allow new-style SQL CREATE FUNCTION as a SQL comm

2024-01-18 Thread Tom Lane
Fix plpgsql to allow new-style SQL CREATE FUNCTION as a SQL command. plpgsql fails on new-style CREATE FUNCTION/PROCEDURE commands within a routine or DO block, because make_execsql_stmt believes that a semicolon token always terminates a SQL command. Now, that's actually been wrong since the day

pgsql: Fix plpgsql to allow new-style SQL CREATE FUNCTION as a SQL comm

2024-01-18 Thread Tom Lane
Fix plpgsql to allow new-style SQL CREATE FUNCTION as a SQL command. plpgsql fails on new-style CREATE FUNCTION/PROCEDURE commands within a routine or DO block, because make_execsql_stmt believes that a semicolon token always terminates a SQL command. Now, that's actually been wrong since the day

pgsql: Fix plpgsql to allow new-style SQL CREATE FUNCTION as a SQL comm

2024-01-18 Thread Tom Lane
Fix plpgsql to allow new-style SQL CREATE FUNCTION as a SQL command. plpgsql fails on new-style CREATE FUNCTION/PROCEDURE commands within a routine or DO block, because make_execsql_stmt believes that a semicolon token always terminates a SQL command. Now, that's actually been wrong since the day

pgsql: Fix plpgsql to allow new-style SQL CREATE FUNCTION as a SQL comm

2024-01-18 Thread Tom Lane
Fix plpgsql to allow new-style SQL CREATE FUNCTION as a SQL command. plpgsql fails on new-style CREATE FUNCTION/PROCEDURE commands within a routine or DO block, because make_execsql_stmt believes that a semicolon token always terminates a SQL command. Now, that's actually been wrong since the day