Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffn1r-0004Y9-TD for pgsql-general@arkaria.postgresql.org; Wed, 18 Jul 2018 14:02:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ffn1q-00016Y-Cd for pgsql-general@arkaria.postgresql.org; Wed, 18 Jul 2018 14:02:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffn1q-00016M-4v for pgsql-general@lists.postgresql.org; Wed, 18 Jul 2018 14:02:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffn1j-0008WG-Jg for pgsql-general@lists.postgresql.org; Wed, 18 Jul 2018 14:02:05 +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 w6IE1smb009014; Wed, 18 Jul 2018 10:01:54 -0400 From: Tom Lane To: Thomas Kellerer cc: pgsql-general@lists.postgresql.org Subject: Re: A bit confused about "pgsql_tmp" vs "temp tablespace" In-reply-to: <9bcde31d-e9c2-c391-746f-913c0403a6e4@gmx.net> References: <6b47cf26-1f2d-a076-194c-dbe6c34c3c6d@aklaver.com> <9bcde31d-e9c2-c391-746f-913c0403a6e4@gmx.net> Comments: In-reply-to Thomas Kellerer message dated "Wed, 18 Jul 2018 15:57:47 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9012.1531922514.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 18 Jul 2018 10:01:54 -0400 Message-ID: <9013.1531922514@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Kellerer writes: > But what about the (temp) space needed for e.g. sorting, grouping or int= ermediate results from CTEs or derived tables? = > Is that also controlled through the temp_tablespaces? = Yes. regards, tom lane