Re: proposal - plpgsql - support standard syntax for named arguments for cursors
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: Gilles Darold <gilles@darold.net>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Tom Lane <tgl@sss.pgh.pa.us>
Date: 2025-02-27T15:40:18Z
Lists: pgsql-hackers
Attachments
- v20250227-0002-Separate-old-proprietary-syntax-to-own-para-with-not.patch (text/x-patch) patch v20250227-0002
- v20250227-0001-allow-to-use-standard-syntax-for-named-arguments-for.patch (text/x-patch) patch v20250227-0001
Hi út 25. 2. 2025 v 6:32 odesílatel Pavel Stehule <pavel.stehule@gmail.com> napsal: > Hi > > po 24. 2. 2025 v 21:05 odesílatel Gilles Darold <gilles@darold.net> > napsal: > >> Review: >> >> This patch claims to add SQL/PSM named arguments syntax to cursors and >> this what it does exactly. >> >> It compiles without error with master current code and all tests >> passed successfully. >> >> I think it could be ready to be committed. >> >> >> Note for the committer: does it make sense to mention in the >> documentation that this standard SQL/PSM syntax is preferred than the PG >> syntax? >> > I modified doc in same manner like function's named arguments are described Regards Pavel > >> >> Best regards, >> > > Thank you for review > > Pavel > > >> >> -- >> Gilles Darold >> http://www.darold.net/ >> >>
Commits
-
Allow => syntax for named cursor arguments in plpgsql.
- 246dedc5d028 18.0 landed
-
Allow named parameters to be specified using => in addition to :=
- 865f14a2d31a 9.5.0 cited
-
Add support for passing cursor parameters in named notation in PL/pgSQL.
- 4adead1d2242 9.2.0 cited