Re: Add notification on BEGIN ATOMIC SQL functions using temp relations
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jim Jones <jim.jones@uni-muenster.de>
Cc: "David G. Johnston" <david.g.johnston@gmail.com>,
Pavel Stehule <pavel.stehule@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-11-22T00:01:24Z
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 →
-
Improve detection of implicitly-temporary views.
- 698fa924b11a 19 (unreleased) landed
-
Issue a NOTICE if a created function depends on any temp objects.
- 572c40ba94ef 19 (unreleased) landed
I wrote: > Although I've left the patch throwing an error (with new wording) > for now, I wonder if it'd be better to reduce the error to a NOTICE, > perhaps worded like "function f will be effectively temporary due to > its dependence on <object>". This is, of course, pretty much what you suggested originally. So I apologize for leading you down the garden path of it-should-be-an-error. I'd still argue for raising an error if we were working in a green field, but we're not. regards, tom lane