Allow => syntax for named cursor arguments in plpgsql.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 3 Mar 2025 23:00:05 +0000 (18:00 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 3 Mar 2025 23:00:13 +0000 (18:00 -0500)
commit246dedc5d028800b393920184e5e6319c6805253
tree0339ce27b43220e3eb7f18adbbb417d61b5bc935
parentb6904afae40d94c2f34bc3c94aee1cdbe0bcfbe9
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
doc/src/sgml/plpgsql.sgml
src/pl/plpgsql/src/pl_gram.y
src/test/regress/expected/plpgsql.out
src/test/regress/sql/plpgsql.sql