Re: How about a proper TEMPORARY TABLESPACE? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: How about a proper TEMPORARY TABLESPACE?
Date
Msg-id 22455.1403110785@sss.pgh.pa.us
Whole thread Raw
In response to Re: How about a proper TEMPORARY TABLESPACE?  (Stephen Frost <sfrost@snowman.net>)
Responses Re: How about a proper TEMPORARY TABLESPACE?  (Fabrízio de Royes Mello <fabriziomello@gmail.com>)
Re: How about a proper TEMPORARY TABLESPACE?  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> Yes.  I'd definitely like to see an ALTER TABLESPACE option, with an
> ERROR that lists out all of the non-temporary objects which are found
> (and lists any other databases which have objects in those
> tablespaces..).  That would allow administrators who have existing
> notionally temporary-only tablespaces to go clean things up to make them
> actually temporary-only.

That seems just about impossible from a concurrency standpoint
(ie, what if someone is creating a new table in the tablespace
concurrently with your check?  Possibly in a different database?)

I would certainly suggest that the first version of the patch not
undertake to allow this property to be ALTERed; the cost-benefit
ratio isn't there IMO.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Is analyze_new_cluster.sh still useful?
Next
From: Andres Freund
Date:
Subject: Re: Set new system identifier using pg_resetxlog