Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z2LvF-00081r-80 for pgsql-performance@arkaria.postgresql.org; Tue, 09 Jun 2015 15:58:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z2LvD-0008UX-Sf for pgsql-performance@arkaria.postgresql.org; Tue, 09 Jun 2015 15:58:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z2LvD-0008UR-3N for pgsql-performance@postgresql.org; Tue, 09 Jun 2015 15:58:39 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z2Lv8-0003lz-Q4 for pgsql-performance@postgresql.org; Tue, 09 Jun 2015 15:58:38 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 02F9BE95E59 for ; Tue, 9 Jun 2015 08:58:39 -0700 (PDT) Date: Tue, 9 Jun 2015 08:58:32 -0700 (MST) From: "ben.play" To: pgsql-performance@postgresql.org Message-ID: <1433865512586-5853081.post@n5.nabble.com> In-Reply-To: References: <1433334092106-5852321.post@n5.nabble.com> <1433337082772-5852328.post@n5.nabble.com> <556F0649.9000402@2ndquadrant.com> <9DED5F42-2C51-4CDE-A179-56A8A9370338@playrion.com> <556F15AD.4040801@2ndquadrant.com> Subject: Re: How to reduce writing on disk ? (90 gb on pgsql_tmp) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Hi, Thank you a lot for your answer. I've done that (create a tablespace in another HD with POSTGRES role + put it as the main temp_tablespace in the conf). But ... my command ~# df show me that all queries use the default tablespace ... This was my commands (the directory is owned by postgres) : CREATE TABLESPACE hddtablespace LOCATION '/media/hdd/pgsql'; ALTER TABLESPACE hddtablespace OWNER TO postgres; SHOW temp_tablespaces; > hddtablespace In /media/hdd/pgsql I have only one empty directory (PG_9.3_201306121). Do you have any tips ? Thanks a lot guys ... -- View this message in context: http://postgresql.nabble.com/How-to-reduce-writing-on-disk-90-gb-on-pgsql-tmp-tp5852321p5853081.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance