Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIu8v-0001Xl-Jl for pgsql-performance@arkaria.postgresql.org; Mon, 19 Dec 2016 09:22:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cIu8v-0004lq-6o for pgsql-performance@arkaria.postgresql.org; Mon, 19 Dec 2016 09:22:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cIu7F-0002rb-MJ for pgsql-performance@postgresql.org; Mon, 19 Dec 2016 09:20:17 +0000 Received: from mxgate01.infotech-enterprises.com ([110.76.168.168] helo=mxgate01.cyient.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cIu7A-0000I1-GA for pgsql-performance@postgresql.org; Mon, 19 Dec 2016 09:20:15 +0000 X-IronPort-AV: E=Sophos;i="5.33,372,1477938600"; d="scan'208";a="59682673" Received: from unknown (HELO INFHYDEX10HT.corp.infotech-enterprises.com) ([172.17.0.189]) by mxgate01.cyient.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Dec 2016 14:42:59 +0530 Received: from CYINMBX4.CORP.CYIENT.COM (172.17.4.164) by INFHYDEX10HT.corp.infotech-enterprises.com (172.17.0.189) with Microsoft SMTP Server (TLS) id 14.3.224.2; Mon, 19 Dec 2016 14:50:05 +0530 Received: from CYINMBX1.CORP.CYIENT.COM (172.17.4.161) by CYINMBX4.CORP.CYIENT.COM (172.17.4.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.27; Mon, 19 Dec 2016 14:49:19 +0530 Received: from CYINMBX1.CORP.CYIENT.COM ([fe80::56:1304:2f4f:3933]) by CYINMBX1.CORP.CYIENT.COM ([fe80::56:1304:2f4f:3933%19]) with mapi id 15.01.0544.027; Mon, 19 Dec 2016 14:49:19 +0530 From: Dinesh Chandra 12108 To: Mark Kirkwood , "pgsql-performance@postgresql.org" Subject: Re: Size of Temporary tablespace is increasing very much in postgresql 9.1. Thread-Topic: [PERFORM] Size of Temporary tablespace is increasing very much in postgresql 9.1. Thread-Index: AdJWvf6QC04I2VK3R6GkiGvITK5pBwBHORuAAH94sAA= Date: Mon, 19 Dec 2016 09:19:18 +0000 Message-ID: <62944b5c5ba94d10a76639956c1c548f@cyient.com> References: <8e77559fe4f74e469c9079b098c42aca@cyient.com> <677ae7cf-d349-fe9d-a810-ba75f9885c44@catalyst.net.nz> In-Reply-To: <677ae7cf-d349-fe9d-a810-ba75f9885c44@catalyst.net.nz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.4.81] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Pg-Spam-Score: -3.5 (---) 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 Dear Mark, Thanks for your valuable comment. Now problem is resolved. Regards, Dinesh Chandra |Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida. ------------------------------------------------------------------ Mobile: +91-9953975849 | Ext 1078 |dinesh.chandra@cyient.com Plot No. 7, NSEZ, Phase-II ,Noida-Dadri Road, Noida - 201 305,India. -----Original Message----- From: Mark Kirkwood [mailto:mark.kirkwood@catalyst.net.nz] Sent: 17 December, 2016 7:28 AM To: Dinesh Chandra 12108 ; pgsql-performance@pos= tgresql.org Subject: Re: [PERFORM] Size of Temporary tablespace is increasing very much= in postgresql 9.1. 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 queri= es are doing this with the log_temp_files parameter. Now it might be that this is just normal/expected (e.g complex data warehou= se style workload), but it could also be many small queries that might bene= fit from some additional indexes (logging the queries will help you decide = what if anything needs to be done). regards Mark ________________________________ DISCLAIMER: This email message is for the sole use of the intended recipient(s) and may= contain confidential and privileged information. Any unauthorized review, = use, disclosure or distribution is prohibited. If you are not the intended = recipient, please contact the sender by reply email and destroy all copies = of the original message. Check all attachments for viruses before opening t= hem. All views or opinions presented in this e-mail are those of the author= and may not reflect the opinion of Cyient or those of our affiliates. --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance