Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z07g1-0008Tk-St for pgsql-performance@arkaria.postgresql.org; Wed, 03 Jun 2015 12:21:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z07g1-0006Wz-4F for pgsql-performance@arkaria.postgresql.org; Wed, 03 Jun 2015 12:21:45 +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 1Z07g0-0006WL-2T for pgsql-performance@postgresql.org; Wed, 03 Jun 2015 12:21:44 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z07fr-0004nx-Cj for pgsql-performance@postgresql.org; Wed, 03 Jun 2015 12:21:42 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 887F9E1CCA2 for ; Wed, 3 Jun 2015 05:21:33 -0700 (PDT) Date: Wed, 3 Jun 2015 05:21:32 -0700 (MST) From: "ben.play" To: pgsql-performance@postgresql.org Message-ID: <1433334092106-5852321.post@n5.nabble.com> Subject: 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 all, We have a big database (more than 300 Gb) and we run a lot of queries each minute. However, once an hour, the (very complex) query writes A LOT on the disk (more than 95 Gb !!!) We have 64 Gb of RAM and this is our config : And my error on the query is : Do you know how to solve this problem ? Best regards, Benjamin. -- View this message in context: http://postgresql.nabble.com/How-to-reduce-writing-on-disk-90-gb-on-pgsql-tmp-tp5852321.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