Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgwAU-0003Yf-Ev for pgsql-performance@arkaria.postgresql.org; Thu, 23 Feb 2017 16:22:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cgwAT-0003vP-Kx for pgsql-performance@arkaria.postgresql.org; Thu, 23 Feb 2017 16:22:57 +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 1cgw8n-00023O-CJ for pgsql-performance@postgresql.org; Thu, 23 Feb 2017 16:21:13 +0000 Received: from mxgate02.infotech-enterprises.com ([110.76.160.160] helo=mxgate02.cyient.com) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cgw8j-0002Au-CW for pgsql-performance@postgresql.org; Thu, 23 Feb 2017 16:21:12 +0000 X-IronPort-AV: E=Sophos;i="5.35,198,1483986600"; d="scan'208,217";a="48742813" Received: from unknown (HELO INFHYDEX10AHT2.corp.infotech-enterprises.com) ([172.17.0.115]) by mxgate02.cyient.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Feb 2017 21:43:43 +0530 Received: from CYINMBX2.CORP.CYIENT.COM (172.17.4.162) by INFHYDEX10AHT2.corp.infotech-enterprises.com (172.17.0.115) with Microsoft SMTP Server (TLS) id 14.3.158.1; Thu, 23 Feb 2017 21:51:02 +0530 Received: from CYINMBX4.CORP.CYIENT.COM (172.17.4.164) by CYINMBX2.CORP.CYIENT.COM (172.17.4.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.27; Thu, 23 Feb 2017 21:51:02 +0530 Received: from CYINMBX4.CORP.CYIENT.COM ([fe80::e40c:d4fe:9e0c:f465]) by CYINMBX4.CORP.CYIENT.COM ([fe80::e40c:d4fe:9e0c:f465%19]) with mapi id 15.01.0544.027; Thu, 23 Feb 2017 21:51:02 +0530 From: Dinesh Chandra 12108 To: "pgsql-performance@postgresql.org" Subject: How to log quires which are taking time in PostgreSQL 9.1. Thread-Topic: How to log quires which are taking time in PostgreSQL 9.1. Thread-Index: AdKN8MsEyo0sp69kQwyJkhYkLhFuLw== Date: Thu, 23 Feb 2017 16:21:01 +0000 Message-ID: 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: multipart/alternative; boundary="_000_f75bc56eb9784a0eadc6c8ed81bf27dbcyientcom_" 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 --_000_f75bc56eb9784a0eadc6c8ed81bf27dbcyientcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Dear expert, I want to log only that queries which are taking around 5 minutes to execut= e. I have a database size >1.5T and using PostgreSQL 9.1 with Linux OS. Thanks in advance. 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. ________________________________ 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. --_000_f75bc56eb9784a0eadc6c8ed81bf27dbcyientcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Dear expert,

 

I want to log only tha= t queries which are taking around 5 minutes to execute.

I have a database size= >1.5T and using PostgreSQL 9.1 with Linux OS.

 

 

Thanks in advance.

 

Regards,

Dinesh Chandra

|Database administrator (Oracle/Pos= tgreSQL)| Cyient Ltd. Noida.<= /p>

--------------------------------= ----------------------------------

Mobile: +91-9953975849 | Ext 10= 78 |dinesh.chandra@cyient.com

Plot No. 7, NSEZ, Phase-II ,Noida-D= adri Road, Noida - 201 305,India.=

 




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 a= ttachments for viruses before opening them. 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.
--_000_f75bc56eb9784a0eadc6c8ed81bf27dbcyientcom_--