Re: We broke the defense against accessing other sessions' temp tables - Mailing list pgsql-hackers

From Tom Lane
Subject Re: We broke the defense against accessing other sessions' temp tables
Date
Msg-id 1554941.1759613813@sss.pgh.pa.us
Whole thread Raw
In response to Re: We broke the defense against accessing other sessions' temp tables  (Jim Jones <jim.jones@uni-muenster.de>)
List pgsql-hackers
Jim Jones <jim.jones@uni-muenster.de> writes:
> True. I just didn't expect this behavior to extend to temporary tables
> as well. It was just a bit surprising that a temporary table can persist
> after its owning session ends, simply because another session is holding
> a lock on it --- without the owning session being aware of that.

Actually the owning session is perfectly aware of that: it's waiting
on the lock to be released so it can finish dropping its temp tables.
The *client* likely isn't aware, because usually clients just close
the connection without waiting for end-of-session cleanup to happen.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Jim Jones
Date:
Subject: Re: We broke the defense against accessing other sessions' temp tables
Next
From: David Rowley
Date:
Subject: Re: Teaching planner to short-circuit empty UNION/EXCEPT/INTERSECT inputs