Re: Temporary tablespaces on a RAM disk - Mailing list pgsql-general

From Ron
Subject Re: Temporary tablespaces on a RAM disk
Date
Msg-id 427c0a2d-77aa-d931-3738-0128a069c2df@gmail.com
Whole thread Raw
In response to Re: Temporary tablespaces on a RAM disk  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Temporary tablespaces on a RAM disk  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general


On 3/17/20 12:19 PM, David G. Johnston wrote:
On Tue, Mar 17, 2020 at 2:49 AM Daniel Westermann (DWE) <daniel.westermann@dbi-services.com> wrote:
is someone using temporary tablespaces on a RAM disk ? Any experiences with that?
I did some quick tests and checked the archives but could not find any information that either confirmed it is a bad idea nor the opposite.

There is a nice big bold warning callout in the documentation that covers this explicitly.


Warning
Placing a tablespace on a temporary file system like a RAM disk risks the reliability of the entire cluster.

But aren't temporary files removed when you restart Postgres?  (I'm assuming that temp_tablespaces is treated "the same" as data/pgsql_tmp.  Is that a false assumption?)


--
Angular momentum makes the world go 'round.

pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Temporary tablespaces on a RAM disk
Next
From: Tom Lane
Date:
Subject: Re: Temporary tablespaces on a RAM disk