pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Westermann (DWE) <daniel.westermann@dbi-services.com>
Cc: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Temporary tablespaces on a RAM disk
Date: Tue, 17 Mar 2020 15:41:09 -0400
Message-ID: <19300.1584474069@sss.pgh.pa.us> (raw)
In-Reply-To: <ZR0P278MB002843B4014347058E71ECF4D2F60@ZR0P278MB0028.CHEP278.PROD.OUTLOOK.COM>
References: <ZR0P278MB0028A89FAA3E31E7F1514EF6D2F60@ZR0P278MB0028.CHEP278.PROD.OUTLOOK.COM>
	<CAKFQuwb4FGHNHT33W0+86ZXJB2y+9Gfj0anj6Fw-VgxudeyBig@mail.gmail.com>
	<427c0a2d-77aa-d931-3738-0128a069c2df@gmail.com>
	<18467.1584472927@sss.pgh.pa.us>
	<ZR0P278MB002843B4014347058E71ECF4D2F60@ZR0P278MB0028.CHEP278.PROD.OUTLOOK.COM>

"Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com> writes:
>> People have asked about this before, so maybe it'd be an idea to make
>> an explicit concept of a temp tablespace that only accepts temp tables,
>> and do whatever is needful to make that robust.  But I've not heard of
>> any work towards that.

> That's what I thought temp_tablespaces are for ( plus sorts, temporary files getting created by materialized views ... )

No ... temp_tablespaces says it's okay to use any of the listed
tablespaces to keep temporary working files in, but it doesn't
say that those tablespaces can *only* be used for that.

The whole business of temp tables (as opposed to those invisible-to-SQL
working files) in such a tablespace is a separate issue, too.  I think
that the server would mostly survive having temp-table files disappear
during reboot, but it's not an officially supported or tested scenario.

			regards, tom lane





view thread (15+ messages)  latest in thread

Message-ID: <19300.1584474069@sss.pgh.pa.us>
Permalink:  ../19300.1584474069@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19300.1584474069@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, daniel.westermann@dbi-services.com, ronljohnsonjr@gmail.com
  Subject: Re: Temporary tablespaces on a RAM disk
  In-Reply-To: <19300.1584474069@sss.pgh.pa.us>
  References: <ZR0P278MB0028A89FAA3E31E7F1514EF6D2F60@ZR0P278MB0028.CHEP278.PROD.OUTLOOK.COM> <CAKFQuwb4FGHNHT33W0+86ZXJB2y+9Gfj0anj6Fw-VgxudeyBig@mail.gmail.com> <427c0a2d-77aa-d931-3738-0128a069c2df@gmail.com> <18467.1584472927@sss.pgh.pa.us> <ZR0P278MB002843B4014347058E71ECF4D2F60@ZR0P278MB0028.CHEP278.PROD.OUTLOOK.COM> <19300.1584474069@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox