Re: Using Expanded Objects other than Arrays from plpgsql
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrey Borodin <x4mmm@yandex-team.ru>
Cc: Pavel Borisov <pashkin.elfe@gmail.com>,
Michel Pelletier <pelletier.michel@gmail.com>,
Pavel Stehule <pavel.stehule@gmail.com>,
pgsql-hackers@lists.postgresql.org
Date: 2025-02-03T17:36:48Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Allow extension functions to participate in in-place updates.
- c366d2bdba7c 18.0 landed
-
Implement new optimization rule for updates of expanded variables.
- 6c7251db0ce1 18.0 landed
-
Detect whether plpgsql assignment targets are "local" variables.
- 36fb9ef269a0 18.0 landed
-
Preliminary refactoring of plpgsql expression construction.
- a654af21ae52 18.0 landed
-
Refactor pl_funcs.c to provide a usage-independent tree walker.
- 6a7283dd2f1c 18.0 landed
-
Generalize plpgsql's heuristic for importing expanded objects.
- 534d0ea6c2b9 18.0 landed
Andrey Borodin <x4mmm@yandex-team.ru> writes: > (Well, maybe paramarg2 resonates a bit, just from similarity with varchar2) I'm not wedded to that name; do you have a better idea? Another idea could be to make it an array: - void *paramarg; /* private data for same */ + void *paramarg[2]; /* private data for same */ That would require touching other code using that field, but there probably isn't much --- at least within our own tree, plpgsql itself is the only user of paramarg. Still, possibly breaking code that didn't need to be broken doesn't seem like an improvement. > ecpg tests seem to fail on Windows[0], but looks like it's not related to this thread. Yeah, known problem with Meson dependencies[1]; it's breaking pretty much all the cfbot's windows builds right now, although maybe there's a timing issue that allows some to pass. regards, tom lane [1] https://www.postgresql.org/message-id/flat/CAGECzQSvM3iSDmjF%2B%3DKof5an6jN8UbkP_4cKKT9w6GZavmb5yQ%40mail.gmail.com