Re: PoC plpgsql - possibility to force custom or generic plan
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
Andrew Dunstan <andrew.dunstan@2ndquadrant.com>,
Andres Freund <andres@anarazel.de>,
Tom Lane <tgl@sss.pgh.pa.us>,
Petr Jelinek <petr.jelinek@2ndquadrant.com>,
David Steele <david@pgmasters.net>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>,
Jim Nasby <Jim.Nasby@bluetreble.com>
Date: 2017-09-05T13:01:54Z
Lists: pgsql-hackers
> On 08 Apr 2017, at 09:42, Pavel Stehule <pavel.stehule@gmail.com> wrote: > > 2017-04-08 2:30 GMT+02:00 Peter Eisentraut <peter.eisentraut@2ndquadrant.com <mailto:peter.eisentraut@2ndquadrant.com>>: > On 4/6/17 14:32, Pavel Stehule wrote: > > I like to see any proposals about syntax or implementation. > > > > Using PRAGMA is one variant - introduced by PLpgSQL origin - Ada > > language. The PRAGMA syntax can be used for PRAGMA autonomous with well > > known syntax. It scales well - it supports function, block or command > > level. > > I had pragmas implemented in the original autonomous transactions patch > (https://www.postgresql.org/message-id/659a2fce-b6ee-06de-05c0-c8ed6a01979e@2ndquadrant.com <https://www.postgresql.org/message-id/659a2fce-b6ee-06de-05c0-c8ed6a01979e@2ndquadrant.com>). > However, the difference there is that the behavior is lexical, specific > to plpgsql, whereas here you are really just selecting run time > behavior. So a GUC, and also something that could apply to other > places, should be considered. > > I'll look there - we coordinate work on that. This patch was moved to the now started commitfest, and is marked as “Needs review”. Based on this thread I will however change it to "waiting for author”, since there seems to be some open questions. Has there been any new work done on this towards a new design/patch? cheers ./daniel
Commits
-
Add plan_cache_mode setting
- f7cb2842bf47 12.0 landed
-
Add some noreturn attributes to help static analyzers
- a044378ce2f6 11.0 cited
-
document when PREPARE uses generic plans
- fab9d1da4a21 9.6.0 cited
-
Redesign the plancache mechanism for more flexibility and efficiency.
- e6faf910d750 9.2.0 cited