Re: [BUG] Cannot flush buffers of temp table deleted from other session - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUG] Cannot flush buffers of temp table deleted from other session
Date
Msg-id 1075844.1749670810@sss.pgh.pa.us
Whole thread Raw
Responses Re: [BUG] Cannot flush buffers of temp table deleted from other session
List pgsql-hackers
Daniil Davydov <3danissimo@gmail.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



pgsql-hackers by date:

Previous
From: Daniil Davydov
Date:
Subject: Re: [BUG] Cannot flush buffers of temp table deleted from other session
Next
From: Nathan Bossart
Date:
Subject: Re: add function for creating/attaching hash table in DSM registry