Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fXrja-0002PE-3x for pgsql-general@arkaria.postgresql.org; Tue, 26 Jun 2018 17:26:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fXrjX-00039k-Uo for pgsql-general@arkaria.postgresql.org; Tue, 26 Jun 2018 17:26:27 +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.89) (envelope-from ) id 1fXrjX-00039c-JE for pgsql-general@lists.postgresql.org; Tue, 26 Jun 2018 17:26:27 +0000 Received: from mail-oln040092253102.outbound.protection.outlook.com ([40.92.253.102] helo=APC01-SG2-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fXrjP-0003fV-Ea for pgsql-general@lists.postgresql.org; Tue, 26 Jun 2018 17:26:26 +0000 Received: from SG2APC01FT017.eop-APC01.prod.protection.outlook.com (10.152.250.54) by SG2APC01HT230.eop-APC01.prod.protection.outlook.com (10.152.251.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.906.15; Tue, 26 Jun 2018 17:26:15 +0000 Received: from MAXPR0101MB1915.INDPRD01.PROD.OUTLOOK.COM (10.152.250.58) by SG2APC01FT017.mail.protection.outlook.com (10.152.250.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.906.15 via Frontend Transport; Tue, 26 Jun 2018 17:26:15 +0000 Received: from MAXPR0101MB1915.INDPRD01.PROD.OUTLOOK.COM ([fe80::11c4:7785:cb4d:2ab2]) by MAXPR0101MB1915.INDPRD01.PROD.OUTLOOK.COM ([fe80::11c4:7785:cb4d:2ab2%8]) with mapi id 15.20.0884.024; Tue, 26 Jun 2018 17:26:15 +0000 From: amandeep singh To: "pgsql-general@lists.postgresql.org" , Andreas Kretschmer Subject: Re: We find few queries running three times simultaneously with same parameters on postgres db Thread-Topic: We find few queries running three times simultaneously with same parameters on postgres db Thread-Index: AQHUDTa3rR0BWzEAVU+yhcnY6K8nraRyV5sAgAAhxICAAFHE6w== Date: Tue, 26 Jun 2018 17:26:14 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:B31AF8D2C096C0B8A1051715BA35DB59F33E9AB3BB52276A8E45B54B7B13DBF1;UpperCasedChecksum:1861DF45631936983D92D1F1714C699DDB33DBD85773ECD72E62159DEDE0C50F;SizeAsReceived:7350;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [HYTdrWPqx+7MJCdpzGib60+mPzYsNkRP] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SG2APC01HT230;7:3/MM9tqJGdC7j5vb1fmCDLJngAbfpuZgiCUBYMD1YhudaT74bD/cusM+3siAeaCmExjGtjcE7/l0XDpldgIwy4XazyKV0Phh38sFF2mZc2w3EYZ7RHm65OW3NsQcFH6ch9+tZgv100uaxrNgENPEBS4ZAV0fTEOyHroZPc4BrKD+i9+mkP0Jt4FGQm4gQRjDEC+j9qs2Vv7cdtE4H/AULVLF8O/PqnOG7T6xJTAO6MwmuzUxBUcU5xuWtmTw7aZj x-incomingheadercount: 46 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125500)(1701031045);SRVR:SG2APC01HT230; x-ms-traffictypediagnostic: SG2APC01HT230: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(444000031);SRVR:SG2APC01HT230;BCL:0;PCL:0;RULEID:;SRVR:SG2APC01HT230; x-forefront-prvs: 071518EF63 x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(199004)(189003)(45080400002)(26005)(74482002)(606006)(53546011)(6506007)(6246003)(7696005)(14454004)(55016002)(68736007)(486006)(86362001)(76176011)(2900100001)(476003)(6436002)(86152003)(11346002)(229853002)(256004)(81156014)(104016004)(8676002)(8936002)(446003)(9686003)(74316002)(2501003)(105586002)(99286004)(6306002)(54896002)(5660300001)(5250100002)(106356001)(110136005)(82202002)(97736004)(102836004)(6346003)(33656002)(25786009)(236005)(80872002);DIR:OUT;SFP:1901;SCL:1;SRVR:SG2APC01HT230;H:MAXPR0101MB1915.INDPRD01.PROD.OUTLOOK.COM;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:; received-spf: None (protection.outlook.com: live.in does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=singh_a@live.in; x-microsoft-antispam-message-info: hi/t3KUU9Udw3pOG85OxpIAHFXOgiUa25Q2XKjV4PjcFv81pYQOzVQW2UwqtFhVW8ucTOBf0q2+JyK0jegOLS7yken7RxjmqxIrC8ebR+x6B0e6g15GmiXckF5xTTYEGrR+So0p437m25XYE1vsUkYwPZzLyB05sHX1y14bhTqJy1C52QDj8M4h+K/lcYEN75Xh9V0Ik4U+dGV4Ryh4eEhQXQ6SkgmaMsWt7av8w0Gw= Content-Type: multipart/alternative; boundary="_000_MAXPR0101MB1915D511FAD2B161D13EDD0380490MAXPR0101MB1915_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-Network-Message-Id: c28d0b0b-da27-4f0e-6c90-08d5db89eb77 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2018 17:26:14.9330 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT230 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_MAXPR0101MB1915D511FAD2B161D13EDD0380490MAXPR0101MB1915_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Andreas The value for $1 is same in all queries. @Edson: number of such running queries are always 3. Get Outlook for Android From: Andreas Kretschmer Sent: Tuesday, 26 June, 6:04 PM Subject: Re: We find few queries running three times simultaneously with sa= me parameters on postgres db To: pgsql-general@lists.postgresql.org On 26 June 2018 12:32:44 CEST, Andreas Kretschmer wrote: > > >Am 26.06.2018= um 12:19 schrieb amandeep singh: >> We have been observing our postgres da= tabase from past few days,We >> found few queries running three times simul= taneously with same >> parameters.I would like to back track how a query is= running multiple > >> times. > >they are independend each other. You can r= un those queries with EXPLAIN > >ANALYSE to see the execution plan. > >Rega= rds, Andreas seems like i misunderstud your query. are you sure, that the p= arameter $1 is equal across all different connections? Andreas -- 2ndQuadra= nt - The PostgreSQL Support Company --_000_MAXPR0101MB1915D511FAD2B161D13EDD0380490MAXPR0101MB1915_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi Andreas

The value for $1 is same in all queries.

@Edson: number of such running queries are always  3.

From: Andreas Kretschmer
Sent: Tuesday, 26 June, 6:04 PM
Subject: Re: We find few queries running three times simultaneously with sa= me parameters on postgres db
To: pgsql-general@lists.postgresql.org


On 26 June 2018 12:32:44 CEST, Andreas Kretschmer wrote: > > >Am 2= 6.06.2018 um 12:19 schrieb amandeep singh: >> We have been observing = our postgres database from past few days,We >> found few queries runn= ing three times simultaneously with same >> parameters.I would like to back track how a query is running multiple > >> tim= es. > >they are independend each other. You can run those queries wit= h EXPLAIN > >ANALYSE to see the execution plan. > >Regards, And= reas seems like i misunderstud your query. are you sure, that the parameter $1 is equal across all different connections? Andreas -- 2nd= Quadrant - The PostgreSQL Support Company

--_000_MAXPR0101MB1915D511FAD2B161D13EDD0380490MAXPR0101MB1915_--