Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jEI5X-0000c4-MZ for pgsql-general@arkaria.postgresql.org; Tue, 17 Mar 2020 19:41:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEI5W-0001bs-Ii for pgsql-general@arkaria.postgresql.org; Tue, 17 Mar 2020 19:41:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jEI5W-0001bl-5l for pgsql-general@lists.postgresql.org; Tue, 17 Mar 2020 19:41:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jEI5U-00062C-03 for pgsql-general@lists.postgresql.org; Tue, 17 Mar 2020 19:41:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 02HJf9IP019301; Tue, 17 Mar 2020 15:41:09 -0400 From: Tom Lane To: "Daniel Westermann (DWE)" cc: Ron , "pgsql-general@lists.postgresql.org" Subject: Re: Temporary tablespaces on a RAM disk In-reply-to: References: <427c0a2d-77aa-d931-3738-0128a069c2df@gmail.com>,<18467.1584472927@sss.pgh.pa.us> Comments: In-reply-to "Daniel Westermann (DWE)" message dated "Tue, 17 Mar 2020 19:33:59 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19299.1584474069.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 17 Mar 2020 15:41:09 -0400 Message-ID: <19300.1584474069@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Daniel Westermann (DWE)" 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 f= iles 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