Allow => syntax for named cursor arguments in plpgsql.
Tom Lane <tgl@sss.pgh.pa.us>
Allow => syntax for named cursor arguments in plpgsql. We've traditionally accepted "name := value" syntax for cursor arguments in plpgsql. But it turns out that the equivalent statements in Oracle use "name => value". Since we accept both forms of punctuation for function arguments, it makes sense to do the same here. Author: Pavel Stehule <pavel.stehule@gmail.com> Reviewed-by: Gilles Darold <gilles@darold.net> Discussion: https://postgr.es/m/CAFj8pRA3d0ARQEMbABa1n6q25AUdNmyO8aGs56XNf9pD4sRMjQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/plpgsql.sgml | modified | +5 −3 |
| src/pl/plpgsql/src/pl_gram.y | modified | +8 −5 |
| src/test/regress/expected/plpgsql.out | modified | +4 −2 |
| src/test/regress/sql/plpgsql.sql | modified | +4 −2 |
Documentation touched
Discussion
- proposal - plpgsql - support standard syntax for named arguments for cursors 14 messages · 2025-02-08 → 2025-03-04