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 1twwqJ-001GHm-Mp for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 05:28:51 +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 1twwqH-00G53S-Vm for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 05:28:49 +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 1twwqH-00G53K-JZ for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 05:28:49 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1twwqF-0010ux-0n for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 05:28:49 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-22403cbb47fso98587305ad.0 for ; Mon, 24 Mar 2025 22:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742880525; x=1743485325; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IWo8jChYd/pqJidfFn0Fk0Pm2SBk2OFnlsWo+N8CxT0=; b=KfYMTZ080eZAKkCeLj1vz8HedpHSk++7m54qF9ZXnGhKLq3nD9GWTH3kacjkgRXPy+ bgPKFxTyhLf6Ixuyr3IZJ4vftLrcAzNHAfXT1Ytfdm06GI4UFLOBhU6bb0UDxamKoPOr Gq8ffkcZIqBDVB0+Jt0/GK/HC796hXXKEkcIP1w3by6Y/oq/yhqe3KSEvCzUmt/u0Dk2 ukOGDkKpBS0u2P53Et7xiN4EDEAVu4YxspB1Le9n/hK+lJb/ktnxKLmzX8yDHpqX8KCA 6jemnYyLDcfM4CADrq66234Wn9xh2z2W4gWebQRey3ABlcGHNRBzfUQ7mmiFL7LqII+z +Nag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742880525; x=1743485325; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IWo8jChYd/pqJidfFn0Fk0Pm2SBk2OFnlsWo+N8CxT0=; b=ZYRdVPl4NK7eklYlvS/1CMvrsQO74SWyOJOH7MdQtt3sf+4BlGDLX7klSZiPO9wDGO J5+OhNu79SCZLX7DG2ZtCO81U66sdhnQhmrG0iYp/1HfUtzH3xBj+N3U1HAfVTKypmWc s79b4vhQyUcTC869pr4hqIBJXIDJQSv3RYIvwjsXqa/sggUcZjM4l5mW0cUycJTRXBn1 UHipGP4Q08tQxd5nI9dCgUYgI5hTy/GmFl2hL+w54XrohFDe5RAZBufC+quTgaxbyvva C38f1H6z2QkBstkEzuY3xqZ0vOhq1O4snCjT8pLs5K1TxES0ucmyj3zXdN6U3psfvtyt dgTA== X-Forwarded-Encrypted: i=1; AJvYcCW81q7fWlHTMjxmcwXMGIJ+484lK51n/JNPWF3uG1y+KvcoSc0fTCja/W1rz9YTZSIQdNLsexyiMNXn/tDk@lists.postgresql.org X-Gm-Message-State: AOJu0Yz/MiSMH0/5xqyIXL7UpUgV9RCUYQ5tx0Mg3cGsWZtPHjOHYix2 EgHlztjN4Hvx9aM3Q6KbIZ35w5wRZPuTansjRer2idk160DzM4WY X-Gm-Gg: ASbGncsM/bC6Kntxg6TZ7h+kydK1b4QqROegOBAir/pHotkWnvQTiBRldcmZ3zt0RZY 6Q+qT2WrruePAyOdmOOpMBndWa7TSZbE/EIYEWSFu4DD5TlWrepY6D/OujBwl663SzdvH/VJFh5 Jltfb6LLAi/miWK9wPgAk/P7tFAq/exkmdiSh4gmf4Heed25U9VgZuK+sN7U6QK4QLwbrcHlIr2 Lsqvvf+0sVEcfkRhExRF7qELO44uTdK0V/4Mjdq6iRJ+aLJyTnIT8544meeaFs9p+la4z0MGGUv v0Gc7wZ6NsRvRwfOOKsnRCeS+3ChJptJ8evU X-Google-Smtp-Source: AGHT+IH9eayZihSyI8ruJWCiNsl7qaSoI+5z8XdOvMThtFedzfMa4LN5JGaIMW5q1DUOGPxTn4LiIg== X-Received: by 2002:a17:902:cf11:b0:224:1943:c5c with SMTP id d9443c01a7336-22780c7bfb1mr246702695ad.15.1742880524631; Mon, 24 Mar 2025 22:28:44 -0700 (PDT) Received: from jrouhaud ([115.43.41.38]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22780f461basm80846315ad.96.2025.03.24.22.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Mar 2025 22:28:44 -0700 (PDT) Date: Tue, 25 Mar 2025 13:28:39 +0800 From: Julien Rouhaud To: Tom Lane Cc: Sami Imseih , Michael Paquier , Christoph Berg , PostgreSQL Hackers , ma lz Subject: Re: query_id: jumble names of temp tables for better pg_stat_statement UX Message-ID: References: <461405.1742691859@sss.pgh.pa.us> <1189112.1742869660@sss.pgh.pa.us> <1192185.1742871390@sss.pgh.pa.us> <1203118.1742877125@sss.pgh.pa.us> <1207515.1742879842@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1207515.1742879842@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 25, 2025 at 01:17:22AM -0400, Tom Lane wrote: > Julien Rouhaud writes: > > On Tue, Mar 25, 2025 at 12:32:05AM -0400, Tom Lane wrote: > >> 2. Tools that are not entitled to set the value of the GUC are forced > >> to be prepared to cope with any setting. That can be anywhere from > >> painful to impossible. > > > Didn't that ship already sailed in pg14 when we allowed generating custom > > query_id? > > Up to a point, perhaps. If I'm writing some kind of tool that digests > pg_stat_statements results, I think I'm entitled to disregard the > possibility that somebody is using a custom query_id that behaves in > ways I'm not expecting --- or at least, fixing my code for that is > their problem not mine. But it's much harder to take that attitude > for things that are built into core PG. I see, that's fair.