Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u2WOe-001sTw-JA for pgsql-performance@arkaria.postgresql.org; Wed, 09 Apr 2025 14:27:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u2WOc-003Pmk-Vf for pgsql-performance@arkaria.postgresql.org; Wed, 09 Apr 2025 14:27:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u2WOc-003Pmc-D5 for pgsql-performance@lists.postgresql.org; Wed, 09 Apr 2025 14:27:18 +0000 Received: from mail-westeuropeazon11013026.outbound.protection.outlook.com ([52.101.72.26] helo=AM0PR02CU008.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u2WOW-004Lmt-1M for pgsql-performance@lists.postgresql.org; Wed, 09 Apr 2025 14:27:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mWO1OFDC5lrvHczObJtXvsNdoJK6ypu6vZAsvDTJ0KFw9XdLSiTXjHCk9ypLV7pkhvwrMYWL3JPBXmt/oOIkv+Lf3rKMGDfAOc/suWJOtkbosIHQoADGbou5HsYrL5zTM3u61ZW2VQl6NE/Pph7gVIFTs+dVX1gMRXhtM3dReGiRK1vFAnTsZFrnhGvVx+gwIqIhrD72BNy39uIVOV2l9PITBnFPWjQDQjL8MGM5KrT/iXs2zx/vC5tER4hiSRYtyZSuNNF0oUGXUgxt+zhkBdP3DU9ytb0d2HZcm6lg1oTgLR1vxia/LvH+wXMb8PlUbh4xAYhie6dh2enLRAeR9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=23cO6uF1MQJTcLxIgT+PNJJGmfonSMvGEL7Z8K//4cg=; b=R23sZkv170vkvm4YvTfMuPCSpqZUtp0Hpy/C7CKCrXgC595PbdgSPHfIyQUiXwRa+OK5gmCUeqqQsUMPUX21MxhPjajL6A2LeteTjf/qXD74dfvD1KOkEI/E9Vfe1PYwmneybC4d+Sfp+7cq71ON/IHmusMt7YV+DFxOrp1HyS9VdtQ1YSs9fdhKEx0r3Nuv3uyKJndLYzabmoJ/f+HoLHqieonW4kfyFOrILPsuOscC9QfqXbiIFseBx/Pp7LlhQinWkHNamQsuDBkoIuXV56+h0iMErRcGJsN6KXZuGYk9t4ErPqweYfMiXIlwQ3g7WhuDSi52a5Uf3cEp4IgUhw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sonymusic.com; dmarc=pass action=none header.from=sonymusic.com; dkim=pass header.d=sonymusic.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sonymusic.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=23cO6uF1MQJTcLxIgT+PNJJGmfonSMvGEL7Z8K//4cg=; b=AEFBslOZeIMnGys0KgX+cGg+iQtqfLkL4GhZPAjpZJ+mtXzKWJyedg/kOQrdu0NfZThNhq4z+WugnPMvgr+U+rFmR7dgH0/YALLN9Nd1YtbOJSWt8nOlJUmEFuyRxtd/oE5vj7awsE5/19QDnT7lPUKHp5JAYFafP/26mZXpOt0= Received: from AS8PR02MB10078.eurprd02.prod.outlook.com (2603:10a6:20b:635::16) by DU5PR02MB10549.eurprd02.prod.outlook.com (2603:10a6:10:518::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8606.33; Wed, 9 Apr 2025 14:27:09 +0000 Received: from AS8PR02MB10078.eurprd02.prod.outlook.com ([fe80::943b:36f5:a03c:2dbf]) by AS8PR02MB10078.eurprd02.prod.outlook.com ([fe80::943b:36f5:a03c:2dbf%4]) with mapi id 15.20.8606.033; Wed, 9 Apr 2025 14:27:09 +0000 From: "Vitale, Anthony, Sony Music" To: "pgsql-performance@lists.postgresql.org" Subject: Question on what Duration in the log Thread-Topic: Question on what Duration in the log Thread-Index: AdupWdJu7qK2OBciTYGQY3RX/oz9PA== Date: Wed, 9 Apr 2025 14:27:08 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=sonymusic.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AS8PR02MB10078:EE_|DU5PR02MB10549:EE_ x-ms-office365-filtering-correlation-id: fc046a6c-782e-4d04-074c-08dd77729c67 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|376014|1800799024|38070700018|8096899003; x-microsoft-antispam-message-info: =?us-ascii?Q?eYKJ80tO4ejDJ7bsoxn6b1UQ3dWLd1h6YZ3HWpGiyR13Oh50hbrrf9LqT2uB?= =?us-ascii?Q?W5Mb6z1nqpL/feMUZ9bQ5134bo/xdu1ldJZhPPlf5yiuPvtqPulnepjLXP26?= =?us-ascii?Q?PcDNnRUq5NufdsU3yJcGmILAigD/aPkQJn9WRqTmx8M7EYWJccMfFQbtZMC/?= =?us-ascii?Q?h0uQer6mKyY2olhGVynuDOb0AQQn5wGEePe9WLIECEStbaU/jO7w0YbGUtu8?= =?us-ascii?Q?HstE6BbiH36d59uix54HOTKs7rfZVNbMUI1VTvXTABgnV2AhW9Lxtf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6BiVBpkQV2dZb4pw0e0n15Xb530qr?= =?us-ascii?Q?4eBWruQ2Q+QJwTVxRmFKPGRBBZmINAr2HalHXrz6X+CIRGmlQ8Xvw5qVCjho?= =?us-ascii?Q?uNwMm8ztinvSMbINy4SJrSovqLnc+5khVA601fXSLfxgzxXIAg+KWdlbACJn?= =?us-ascii?Q?jEMyNB4rgmX3daUmkdBtcLDazsFBdtq6zHx1dRbXkVOARBHkD5n0GO6yeIpo?= =?us-ascii?Q?H1Mi9DmSCN12DK5/2ywNtNpqX/UqqJIa+9C/pW/GQu3BcRpp/bo5ZsFOHGCK?= =?us-ascii?Q?bw8ee4Q6oCEhAggszFIsx6EA4lRYdZET?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR02MB10078.eurprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024)(38070700018)(8096899003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?DuJ9GTAzwV+pfv7sPRxps653aMQ4yRCLnC3lZ4yHEq7SZWAQzktQOoO4QBjk?= =?us-ascii?Q?j9Tg13NMwWIDOxdWm0hiXfdFLCmP6wUwiKqygGI9Aoi3Q6Un7qNGxUHpF/yj?= =?us-ascii?Q?xTe0RGnBd6QMDBmMTlIO0TEZgdlprZoxVGzkhYvGOUsS7MLgemveM6VaDG5B?= =?us-ascii?Q?RT6R/l3lARuyu2i9qwAW+rfQy/RGaCxL/0E2/a/tyuK5rVQ5f2RuKK2hSENo?= =?us-ascii?Q?wcNMF+FYv010+rmNRi7+kaok/Zmf45f5yjBnqjLlaLVhApt1D9YAPJhX2fkG?= =?us-ascii?Q?DBStpwqLzz8zQ3ff2xjkwX4FcbICaj8DGpAugoP4dFiplgMl5YchrWiHxGb6?= =?us-ascii?Q?e5fsiiasrxjSb9k8s/dVM3a4tuZqDg8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AZYOHG1srgGrCtgX3FYnPnIDWwkbijB0fZxJCE9qtF+eq04/W2jtNYPIJ4g?= =?us-ascii?Q?gQYggktVkCLe1OcZyrFG6BuwqkOzY7WgT7Ej5jhqND8zMGdZTzuVZ4agY77X?= =?us-ascii?Q?BiH2YTJz3/OU9hhf4zbzq27Ow1hLx5p0pjxovc3Zja9HisLeoFiR6gkWDdJC?= =?us-ascii?Q?FqOaI5H/wzyNwMoHUJyYPrYz5OIDsb+voneJWhhBN9rKUSwTeRUX+eoRm17e?= =?us-ascii?Q?UWC6Avv5T8g7hIXvOGAv1op8i1N+iJ4UZ6NNMY/+3zu1Wm9bA4U4aXQ1FDLV?= =?us-ascii?Q?pFc1wH3p8Kw++9v4qMSzWirJA1ojfMum9a3TLGgVkYJuJQHztdCR/0XG5R6G?= =?us-ascii?Q?Qw=3D=3D?= Content-Type: multipart/alternative; boundary="_000_AS8PR02MB100787E253E044418232962DC99B42AS8PR02MB10078eu_" MIME-Version: 1.0 X-OriginatorOrg: sonymusic.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS8PR02MB10078.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fc046a6c-782e-4d04-074c-08dd77729c67 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2025 14:27:09.0165 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f0aff3b7-91a5-4aae-af71-c63e1dda2049 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LeHy1ToiZC06Rv7U6WgTXWkbCoRbFmX7SyYV387Hgk3/jXqnjOWWyKz17RFDcElBp3JK+fdGHxRzxc+8/C1OgvZeWkg0QJcndDBrEWo5Uck= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU5PR02MB10549 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_AS8PR02MB100787E253E044418232962DC99B42AS8PR02MB10078eu_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello All In my PG Version 14 log I have set to log the duration of sql (Example of o= ne log row below). 2025-04-08 07:31:57 UTC:XXX(55994):XXX:[8949]:LOG: duration: 6555.756 ms = execute S_381: {Actual Parameterized Sql executed} This Shows the Execution of a JDBC Server Side Prepared statement (i.e S_38= 1) which took 6.5 seconds. When I run the Sql using explain analyze it runs shows an execution time of= 73 ms Planning Time: 0.773 ms Execution Time: 73.578 ms I am trying to understand the duration of 6.5 seconds and if it represents = the time to execute the sql (Since the plan already exists) itself or the = full time needed to execute the sql as well as for the last row to be fetch= ed by the program. The result set of the query does return 50,000+ rows Is there anywhere that explains what exactly the duration in the log repres= ents. Thanks Anthony Vitale --_000_AS8PR02MB100787E253E044418232962DC99B42AS8PR02MB10078eu_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello All

 

In my PG Version 14= log I have set to log the duration of sql (Example of one log row below).<= o:p>

 

2025-04-08 07:31:57 UTC:XXX(55994):XXX:[8949]:LOG:  duration: 6555.= 756 ms  execute S_381: {Actual Parameterized Sql executed}<= /span>

 

 

This Shows the Exec= ution of a JDBC Server Side Prepared statement (i.e S_381) which took 6.5 s= econds.

 

When I run the Sql = using explain analyze it runs shows an execution time of 73 ms

 

Planning Time: 0.773 ms

Execution Time: 73.578 ms

 

I am trying to unde= rstand the duration of 6.5 seconds and if it represents the time to execute= the sql (Since the plan already exists)  itself or the full time need= ed to execute the sql as well as for the last row to be fetched by the program.

 

The result set of t= he query does return 50,000+ rows

 

Is there anywhere t= hat explains what exactly the duration in the log represents.

 

Thanks

Anthony Vitale

 

--_000_AS8PR02MB100787E253E044418232962DC99B42AS8PR02MB10078eu_--