Re: Procedures versus the "fastpath" API
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Joe Conway <mail@joeconway.com>, pgsql-hackers@lists.postgresql.org
Date: 2021-04-30T16:57:29Z
Lists: pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes: > On Tue, Mar 09, 2021 at 02:33:47PM -0500, Joe Conway wrote: >> My vote would be reject using fastpath for procedures in all relevant branches. >> If someday someone cares enough to make it work, it is a new feature for a new >> major release. > FWIW, my vote would go for issuing an error if attempting to use a > procedure in the fast path for all the branches. The lack of > complaint about the error you are mentioning sounds like a pretty good > argument to fail properly on existing branches, and work on this as a > new feature in the future if there is anybody willing to make a case > for it. I let this thread grow cold because I was hoping for some more votes, but with the quarterly releases approaching, it's time to close out the issue one way or the other. By my count, we have three votes for forbidding procedure calls via fastpath in all branches (me, Joe, Michael), and two for doing something laxer (Noah, Laurenz). The former is surely the safer choice, so I'm going to go do that. regards, tom lane
Commits
-
Doc: update libpq's documentation for PQfn().
- d25997f898dd 11.12 landed
- 8e9b7c638770 12.7 landed
- 7c810bd028a7 13.3 landed
- 49172d88f9d0 10.17 landed
- 386e64ea5abf 14.0 landed
- 2033d108ee6b 9.6.22 landed
-
Disallow calling anything but plain functions via the fastpath API.
- ebc2ff076ef2 11.12 landed
- 89768ee696bf 12.7 landed
- 73bad52a93d6 9.6.22 landed
- 4d225ba0e6da 13.3 landed
- 2efcd502e56a 14.0 landed
- 0627f3630ce7 10.17 landed