Re: Add notification on BEGIN ATOMIC SQL functions using temp relations
Vik Fearing <vik@postgresfriends.org>
From: Vik Fearing <vik@postgresfriends.org>
To: Jim Jones <jim.jones@uni-muenster.de>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-09-21T14:43:51Z
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
On 21/09/2025 13:49, Jim Jones wrote: > WARNING: function defined with BEGIN ATOMIC depends on temporary > relation "tmp" > DETAIL: the function will be dropped automatically at session end. > CREATE FUNCTION In addition to what others have said, this DETAIL line needs to be contextual. The temporary table could have been declared as ON COMMIT DROP in which case the function will only last until transaction end. -- Vik Fearing