Re: We broke the defense against accessing other sessions' temp tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: We broke the defense against accessing other sessions' temp tables
Дата
Msg-id 1554941.1759613813@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: We broke the defense against accessing other sessions' temp tables  (Jim Jones <jim.jones@uni-muenster.de>)
Список 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 по дате отправления: