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 1fXl4E-0004UK-Nm for pgsql-general@arkaria.postgresql.org; Tue, 26 Jun 2018 10:19:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fXl4C-0005Wp-A0 for pgsql-general@arkaria.postgresql.org; Tue, 26 Jun 2018 10:19:20 +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.89) (envelope-from ) id 1fXl4C-0005Wc-2b for pgsql-general@lists.postgresql.org; Tue, 26 Jun 2018 10:19:20 +0000 Received: from mail-oln040092254107.outbound.protection.outlook.com ([40.92.254.107] helo=APC01-PU1-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fXl48-0007F5-Um for pgsql-general@postgresql.org; Tue, 26 Jun 2018 10:19:19 +0000 Received: from SG2APC01FT011.eop-APC01.prod.protection.outlook.com (10.152.250.56) by SG2APC01HT117.eop-APC01.prod.protection.outlook.com (10.152.251.51) 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 10:19:11 +0000 Received: from MAXPR0101MB1915.INDPRD01.PROD.OUTLOOK.COM (10.152.250.56) by SG2APC01FT011.mail.protection.outlook.com (10.152.250.183) 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 10:19:11 +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 10:19:10 +0000 From: amandeep singh To: "pgsql-general@postgresql.org" Subject: 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+yhcnY6K8nrQ== Date: Tue, 26 Jun 2018 10:19:10 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:12DACA706BBF3E7ABE985F22D6B3588A26C2E03BE68D496A6E39600FD6D3FEE6;UpperCasedChecksum:5A06E72CE75500108554D9823F84B6B5831961745EC7C334C1281CBEDEFA188E;SizeAsReceived:7019;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [1c1fLnJVwKyWCX30ea2nGt+gviFA/iUp] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SG2APC01HT117;7:VoPzNOOc0hR3YIVgFYk5a4SKFqJxMxMD3Hs/YthDRbtOhlB/o+RCDG3rBZ2xxc3aiECO4KOKlgIIcbzV0fdnMZNOOH8/1PEEFAoOahpKep6WSLQi71GZ6TNJPHqDL8rOi4M4H7kw3ZGIl6zdKeSFHRCf+2QAGk+AKAbF6o128bOpas2vtN6BTPzG0bI3nO5gHp/s/szHKnq++FNhrYDKtpWy2djckYAAtwcvvt7dhSrX6CP2i06T+00X+WUYmT+J x-incomingheadercount: 44 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:SG2APC01HT117; x-ms-traffictypediagnostic: SG2APC01HT117: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(444000031);SRVR:SG2APC01HT117;BCL:0;PCL:0;RULEID:;SRVR:SG2APC01HT117; x-forefront-prvs: 071518EF63 x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(199004)(189003)(5660300001)(14454004)(104016004)(25786009)(106356001)(105586002)(19627405001)(6606003)(82202002)(2351001)(6916009)(7696005)(68736007)(6506007)(99286004)(33656002)(26005)(2501003)(8936002)(2900100001)(8676002)(81156014)(97736004)(74316002)(102836004)(74482002)(6346003)(256004)(5640700003)(9686003)(486006)(476003)(54896002)(86362001)(6436002)(5250100002)(55016002)(86152003)(80872002);DIR:OUT;SFP:1901;SCL:1;SRVR:SG2APC01HT117;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: kYpsIiV4Hx7YXPdDIwXwA5vDcEYQ+Wb9RJiX5IZi3bh2kSnHTdNXBgL1jUtlJXvlSCUYX/233yw4JkftMBiRZEel/hUXLMm1FeDiifECRMPcZ/Cu8n8vUvsmaQzwMwglAEY7ZLsIMUpYIlwYDKklwj/v1p6Ri2DEcNimU72sL1aQ3iy6gbIUmSB1ubTb3KWR2RVQeP3sMgC/kOKOvRw48nQYiWEf0wpH/ATRZ5eW8PE= Content-Type: multipart/alternative; boundary="_000_MAXPR0101MB191541848D3CD85B118AC07080490MAXPR0101MB1915_" 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: b574f48c-65a9-47de-f3cd-08d5db4e4251 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2018 10:19:10.8142 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT117 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_MAXPR0101MB191541848D3CD85B118AC07080490MAXPR0101MB1915_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Team We have been observing our postgres database from past few days,We found fe= w queries running three times simultaneously with same parameters.I would l= ike to back track how a query is running multiple times. 2018-06-26 15:22:13.620045+05:30 | 00:00:00.198777 | active | 22234 | selec= t * from xyz where x_id=3D$1 2018-06-26 15:22:13.618832+05:30 | 00:00:00.19999 | active | 22233 | select= * from xyz where x_id=3D$1 2018-06-26 15:22:13.612721+05:30 | 00:00:00.206101 | active | 23927 | selec= t * from xyz where x_id=3D$1 Our application is developed in java struts 1.3 and hibernate as ORM and to= mcat 8.5 for hosting. PostgreSQL version: 10.3 Kindly suggest. Thanks and Regards: Amandeep Singh --_000_MAXPR0101MB191541848D3CD85B118AC07080490MAXPR0101MB1915_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi Team


We have been observing our postgres database from past few days,We found fe= w queries running three times simultaneously with same parameters.I would l= ike to back track how a query is running multiple times.

2018-06-26 15:22:13.620045+05:30 | 00:00:00.198777 | active | 22234 | s= elect * from xyz where x_id=3D$1 

2018-06-26 15:22:13.618832+05:30 | 00:00:00.19999 | active | 22233 | se= lect * from xyz where x_id=3D$1

2018-06-26 15:22:13.612721+05:30 | 00:00:00.206101 | active | 23927 | s= elect * from xyz where x_id=3D$1

Our application is developed in java struts 1.3 and hibernate as ORM and to= mcat 8.5 for hosting.

PostgreSQL version: 10.3

Kindly suggest.

Thanks and Regards:
Amandeep Singh
--_000_MAXPR0101MB191541848D3CD85B118AC07080490MAXPR0101MB1915_--