Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cI4GM-0006ad-ST for pgsql-performance@arkaria.postgresql.org; Sat, 17 Dec 2016 01:58:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cI4GM-0004pB-Cv for pgsql-performance@arkaria.postgresql.org; Sat, 17 Dec 2016 01:58:14 +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.84_2) (envelope-from ) id 1cI4GL-0004p4-Je for pgsql-performance@postgresql.org; Sat, 17 Dec 2016 01:58:13 +0000 Received: from cat-porwal-prod-mail1.catalyst.net.nz ([202.78.240.226]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cI4GD-0002Co-CQ for pgsql-performance@postgresql.org; Sat, 17 Dec 2016 01:58:12 +0000 Received: from localhost (localhost [127.0.0.1]) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTP id ECC03805F2; Sat, 17 Dec 2016 14:57:58 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at cat-porwal-prod-mail1.servers.catalyst.net.nz Received: from cat-porwal-prod-mail1.catalyst.net.nz ([127.0.0.1]) by localhost (cat-porwal-prod-mail1.servers.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 43M2mrAY1Brq; Sat, 17 Dec 2016 14:57:58 +1300 (NZDT) Received: from [192.168.1.64] (122-62-66-159.jetstream.xtra.co.nz [122.62.66.159]) (Authenticated sender: mark.kirkwood@catalyst.net.nz) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTPSA id C721F805E9; Sat, 17 Dec 2016 14:57:57 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catalyst.net.nz; s=catalyst; t=1481939877; bh=THV0qe6PiYyIEDX7Yg5H7dfFUWTXwAsrSKkM5Sp4aCg=; h=Subject:To:References:From:Date:In-Reply-To; b=QMQ/a/XHbiQi20DD0f+5VCtluGCohM8GhNT2jnnIyDKGPuvq26TkoydxtrGsFdIDQ XRLfCu05JZz17SVe/0vj78I5b1ywf+szfFW3Jb32LmZ9Q3AVvHdDHg+PH8xn3D087F vJ/0Q/Fb+j4ZQpI19T5cjK/fVX/iDyc5DgrNLebE= Subject: Re: Size of Temporary tablespace is increasing very much in postgresql 9.1. To: Dinesh Chandra 12108 , "pgsql-performance@postgresql.org" References: <8e77559fe4f74e469c9079b098c42aca@cyient.com> From: Mark Kirkwood Message-ID: <677ae7cf-d349-fe9d-a810-ba75f9885c44@catalyst.net.nz> Date: Sat, 17 Dec 2016 14:57:57 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <8e77559fe4f74e469c9079b098c42aca@cyient.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.4 (-------) 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 On 15/12/16 23:28, Dinesh Chandra 12108 wrote: > Dear expert, > > In postgreSQL-9.1,the size of *pgsql_tmp* inside tablespace (Temp > tablespace) is increased by 544G in one day. > > However, the DBsize is as usual but tablespace size is getting increased. > > Could you please suggest why it is happening ? > > That is due to queries doing sorts or (hash) joins. You can log which queries are doing this with the log_temp_files parameter. Now it might be that this is just normal/expected (e.g complex data warehouse style workload), but it could also be many small queries that might benefit from some additional indexes (logging the queries will help you decide what if anything needs to be done). regards Mark -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance