Re: Forbid to DROP temp tables of other sessions

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Daniil Davydov <3danissimo(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Forbid to DROP temp tables of other sessions
Date: 2024-10-28 01:26:04
Message-ID: Zx7oLCnqis3FjgCK@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Oct 25, 2024 at 02:01:23PM -0400, Tom Lane wrote:
> If autovacuum can do it, I don't see a reason to prevent superusers
> from doing it manually.

Being able to do a DROP of a temporary table in a controlled way can
also be very handy when working on a cluster with a corrupted catalog
state, so it is a feature if superusers are able to do that. I'm
pretty sure that we have this argument once every few years on
pgsql-hackers..
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message 黄铎彦 2024-10-28 01:31:17 Re: msvc directory missing in PostgreSQL 17.0
Previous Message Richard Guo 2024-10-28 01:01:54 Re: Inconsistent RestrictInfo serial numbers