On 3/17/20 12:19 PM, David G. Johnston wrote:
On Tue, Mar 17, 2020 at 2:49 AM Daniel Westermann (DWE)
<daniel.westerm...@dbi-services.com
<mailto:daniel.westerm...@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.
https://www.postgresql.org/docs/12/manage-ag-tablespaces.html
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.