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 1uWWAm-00F06Z-D1 for pgsql-general@arkaria.postgresql.org; Tue, 01 Jul 2025 08:17:00 +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 1uWWAk-004SgU-FI for pgsql-general@arkaria.postgresql.org; Tue, 01 Jul 2025 08:16:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uWWAj-004SgM-Lc for pgsql-general@lists.postgresql.org; Tue, 01 Jul 2025 08:16:58 +0000 Received: from fhigh-b1-smtp.messagingengine.com ([202.12.124.152]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uWWAi-004url-1z for pgsql-general@postgresql.org; Tue, 01 Jul 2025 08:16:57 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 2180C7A026C; Tue, 1 Jul 2025 04:16:55 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Tue, 01 Jul 2025 04:16:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1751357814; x=1751444214; bh=Pi31K4EZUg TbijvQ+4TPjNn5mnH4o1Mf6ox8h0C/tFg=; b=XwDLE193Fzv8Q+9k4vPJF0zcLw bjvLyBTroUR4EvbkJKiCkjBYIKqcNldVSiODdMQaJveKVlivDT6oohOwzbJL3Aeu XxtUmlot1ok0BG7oALy9NrwYvVx3Khogncpwffl45AfxXi3ZhBCHivsOHGtaAIiV GmlI/FJNZ+t/8M6cMQoqquOcgVZfRZSG0cEcABXLkNjGqpHX7CsTOEZEZcPg2NSO tfSCKXblmpq3y9LjrZu4nTuiKNCg/Bi/boFNZ9zzcVPTLo5J3E/3LlUcZyI/LjM2 M6qZy2p99FvPh5h1YE+RgLBruSMQoSjkhqOXMK7w0rXRsccRyH5oGG7P+wTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1751357814; x=1751444214; bh=Pi31K4EZUgTbijvQ+4TPjNn5mnH4o1Mf6ox 8h0C/tFg=; b=MCzyjJ2grdJPfsbsZ0k4NjD3jpHWRlBsAAOtTt9aLChuJCkyXBu wf0th+aT6qm41jWKQgVMhftRZb0rxbuRc0+4S5kxsJAXRheOX3oYurJxOURLdETf UO3n86t7oph4TjWOsZk/dUVQ3d8aS2Pg25GMtgfaZ+Awn1OlLyx44Ra7qKpssYu0 kSkfZXiIBXjzFwW4/2FjvKdS94A7B9EtsKFm9FH1nm/LppFEESe5qtp6dzSoOySa Ot6jmpAZ+vZxNO8vVqPZWq4SZGIEs613XcHrQn2Z5tqRkE29AaiiNfuwoqnMDEPZ qN9rrciE/2RNXVU8WK9skdzdZCNETqRvASQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddugedtjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtroertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeffudelheeghfekfefgfedthfekuddt vdfhudekgeegheeikefflefhleekheetfeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehmghhorh hkohhvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlhes phhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Jul 2025 04:16:53 -0400 (EDT) Date: Tue, 1 Jul 2025 17:16:32 +0900 From: Michael Paquier To: Maksim Gorkov Cc: pgsql-general@postgresql.org Subject: Re: The same query_id for different queries Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="v2GP9sR3T36N14cp" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --v2GP9sR3T36N14cp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 01, 2025 at 10:24:14AM +0300, Maksim Gorkov wrote: > 2064869707185898531;'BEGIN;...' -- the full text in query1.sql attachment > 2064869707185898531;'COMMIT;' >=20 > there is another example, if required I can send it for review. >=20 > Why does this happen and how can it be fixed? Hard to say based on the information you are giving here. First, what you are posting is not a self-contained case. It sounds to me that you may be seeing two entries with one for a top-level query and one for a non-top-level query. In this case the same query ID could be used. -- Michael --v2GP9sR3T36N14cp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmhjmWAACgkQnvQgOdby QH04pw//XGQDpBUaIkILve3P2ivMwK/bGCgv7nuAVLJCU5D7SKbTC8X6naho1swi tyWh3KNiv6o6gajuYkWlpv3j8irjGmkhtmr7X2v3udyv6LifQwWSmb521Jhdmppt peaUSVXgfto2Sph/0TEpMgkPUKBlGlOf84x5Wq5my9Wh1Jjh8Um+IwYwrdqWHSTS 6eLmAQ3667IRXW9z8bfTjqATvC3JVfdFUsFM77i9VYCtFnp9Tut7lOQmOtRgOjVh JjtNnW0FimY0Ee5py0F7VT5+snKgEH4kEsoXpiSlU2YD21feIKwnTx9g7foYu/Ky AofEZJ0EZ4XO6IsLZ/UEu61E3AYFOclGHKAqzLODGYD2UbShUsiInfJEN2O0g3ky nLlI/w2m7/yaoW8UWf3F6lUyJx6/mTcekARMsXv0ed6bpbRTxYMnlHuRO3ccLISV SSTeWleMLiuJbqCnNicLD3zWRjTHwTwqajMKry7m/VeG5ob9Hr+yoSddSq9MbPu5 g2dl6Oo4iKpg7f9vDeIidL0c2qCzaIv1tcvJLIc9TVLYeMYgAdfG9h2M+FmBuE65 WTMXoXfGgSbzj4xn/fsB7XppAmZhQ1ZHLCGQw75fGCsmVpF/EdpMHlCCcU2WBnTn FQHlkKfueXwqRoxkcUhCJu5TC69d0BSNpoNKgIVsgv41INm1Vxg= =Wu8l -----END PGP SIGNATURE----- --v2GP9sR3T36N14cp--