Re: [BUG] Cannot flush buffers of temp table deleted from other session

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Daniil Davydov <3danissimo(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [BUG] Cannot flush buffers of temp table deleted from other session
Date: 2025-06-11 19:40:10
Message-ID: 1075844.1749670810@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Daniil Davydov <3danissimo(at)gmail(dot)com> writes:
> Ability to do a DROP temporary table of other session leads to error :

[ shrug... ] Don't do that. A superuser is capable of doing lots
of things that will break the database, and this one hardly seems
like one of the worse ones.

> BTW, there are other bugs that can occur during interacting with other
> session temp tables. I described them and suggested corrections in
> this thread [1].

I doubt I'd agree that any such thing is a bug we need to fix.
You should not be attempting to touch other sessions' temp tables.
(If there's any path by which a non-superuser can do that, we
probably need to tighten some permission check somewhere.)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2025-06-11 19:51:00 Re: PG 18 release notes draft committed
Previous Message Daniil Davydov 2025-06-11 19:33:24 Re: [BUG] Cannot flush buffers of temp table deleted from other session