pgsql: Fix another couple of outdated comments for MERGE RETURNING.

2024-06-04 Thread Dean Rasheed
Fix another couple of outdated comments for MERGE RETURNING. Oversights in c649fa24a4 which added RETURNING support to MERGE. Discussion: https://postgr.es/m/caaphdvpqp6vtuzg-_josueibgyqnrnvxj-vdf+hjlxjhdhz...@mail.gmail.com Branch -- master Details --- https://git.postgresql.org/pg/co

pgsql: Fix PL/pgSQL's handling of integer ranges containing underscores

2024-06-04 Thread Dean Rasheed
Fix PL/pgSQL's handling of integer ranges containing underscores. Commit faff8f8e47 allowed integer literals to contain underscores, but failed to update the lexer's "numericfail" rule. As a result, a decimal integer literal containing underscores would fail to parse, if used in an integer range w

pgsql: Fix PL/pgSQL's handling of integer ranges containing underscores

2024-06-04 Thread Dean Rasheed
Fix PL/pgSQL's handling of integer ranges containing underscores. Commit faff8f8e47 allowed integer literals to contain underscores, but failed to update the lexer's "numericfail" rule. As a result, a decimal integer literal containing underscores would fail to parse, if used in an integer range w

pgsql: Fix pl/tcl's handling of errors from Tcl_ListObjGetElements().

2024-06-04 Thread Tom Lane
Fix pl/tcl's handling of errors from Tcl_ListObjGetElements(). In a procedure or function returning tuple, we use that function to parse the Tcl script's result, which is supposed to be a Tcl list. If it isn't, you get an error. Commit 26abb50c4 incautiously supposed that we could use throw_tcl_e

pgsql: Fix pl/tcl's handling of errors from Tcl_ListObjGetElements().

2024-06-04 Thread Tom Lane
Fix pl/tcl's handling of errors from Tcl_ListObjGetElements(). In a procedure or function returning tuple, we use that function to parse the Tcl script's result, which is supposed to be a Tcl list. If it isn't, you get an error. Commit 26abb50c4 incautiously supposed that we could use throw_tcl_e

pgsql: Fix pl/tcl's handling of errors from Tcl_ListObjGetElements().

2024-06-04 Thread Tom Lane
Fix pl/tcl's handling of errors from Tcl_ListObjGetElements(). In a procedure or function returning tuple, we use that function to parse the Tcl script's result, which is supposed to be a Tcl list. If it isn't, you get an error. Commit 26abb50c4 incautiously supposed that we could use throw_tcl_e

pgsql: Fix pl/tcl's handling of errors from Tcl_ListObjGetElements().

2024-06-04 Thread Tom Lane
Fix pl/tcl's handling of errors from Tcl_ListObjGetElements(). In a procedure or function returning tuple, we use that function to parse the Tcl script's result, which is supposed to be a Tcl list. If it isn't, you get an error. Commit 26abb50c4 incautiously supposed that we could use throw_tcl_e

pgsql: Fix pl/tcl's handling of errors from Tcl_ListObjGetElements().

2024-06-04 Thread Tom Lane
Fix pl/tcl's handling of errors from Tcl_ListObjGetElements(). In a procedure or function returning tuple, we use that function to parse the Tcl script's result, which is supposed to be a Tcl list. If it isn't, you get an error. Commit 26abb50c4 incautiously supposed that we could use throw_tcl_e

pgsql: Fix pl/tcl's handling of errors from Tcl_ListObjGetElements().

2024-06-04 Thread Tom Lane
Fix pl/tcl's handling of errors from Tcl_ListObjGetElements(). In a procedure or function returning tuple, we use that function to parse the Tcl script's result, which is supposed to be a Tcl list. If it isn't, you get an error. Commit 26abb50c4 incautiously supposed that we could use throw_tcl_e