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 1twv0X-000zTq-BX for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 03:31:17 +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 1twv0V-00ERl3-Bv for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 03:31:15 +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 1twv0V-00ERkv-1W for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 03:31:15 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1twv0T-000yBA-1Y for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 03:31:14 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-30bee278c2aso65212141fa.0 for ; Mon, 24 Mar 2025 20:31:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742873470; x=1743478270; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=DUETza5u9fvEqPn79+xdg9Xskal4IGmjDazp8C9BLhg=; b=mFgWNgMejiaQ5mFz4ZqBRixzFnKzd3CdQJS/taXT6JFHdXmV1S3sdMl61C+Pu34tRm oVcvE89taJhmznPWgWO8fBj7Gp+jlAbaQXTgTcyuAqkVFSGSXM07WJg0HaHQjzPY+RuJ /YIBkiuDZTXDxQcqOMTC6EsRFJfjfxYn5aCQfm93a+8S2n7Ru4/pKDK9lQlTPme1QbOj EBRvMi32i3mfngFgwzBpSs7UWMJMUb8s6tXhA/sXAqZG1oExoVRkSqpXHVjnAQFfwQAz vbRSTipbfoTLHmNrN4vP80GWPbhJU6lNsOmG0UaonEDTozDHEjLColzOSJiA8eGWt97M N6GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742873470; x=1743478270; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DUETza5u9fvEqPn79+xdg9Xskal4IGmjDazp8C9BLhg=; b=uleZydxECoWq8aY2cwG9cvlKNgKcWDLhifHzoWCWY4/q55GoHZlfqDBJKE1rii9W1+ 2V4zd54flnSqtKthVZca+OqBwi8p3dMx8nsg30AQx20L+ZbZC+ChYVk+N8QHFZRb8XM5 +1Z5TUmqi8+mip55PqKzAwKKWbRzjctbAQJYjSbsmh5E0/bCnLb8uejkhPbudJPKWVcY Hmp5AZcYVB3/mXOYzk/G2kLy/g26vFyI5lz23JlrPhDQjMIMne9VmVS1JEIJ5yDEELbY /afVAq7A4zpTa8AtuTjfCDFDMyp+xfCTY8KYrVOpRrEQtmGNrAIig/B4mbp5OZBA06mY 0Ebw== X-Forwarded-Encrypted: i=1; AJvYcCWUgv+JZnZWT8vWv1+v/Dic8dWWABomvxgVjeULCK7WDbfKRgU911MqKW9LOSPUVXLyhg643JX5F6pgMKmj@lists.postgresql.org X-Gm-Message-State: AOJu0YyVFbpRo8PGMFqUu2+hnt3dzNL3/gSFpCusvpYPszx7O+ZeIqmN 5CrlE3onGMzm3Nb3Rcl8gcdxPYylHxVx4A+RDG1RYxI9QEKFTfSrTHygKRbSBh5dapZw5Nxtc2O qcd+0syFQOMPDcyvf4SHETiRoRI4= X-Gm-Gg: ASbGncuNUtkH2aYaPh/Kn39hESU6F+FnZLljOp5V7XOF8Lw6K3fsJgo9jkgWka9goRm 7nBD33sTT2DOHmC8EM+YarnPFNqt/Agt0zk98glcoB9YCfoGwpkchxiz8PH6ps6TuRU157c3Abk yVcs9YtqAnxrR6hdAxECS9gBBj X-Google-Smtp-Source: AGHT+IFZAdK4+LTYQ4aPAepui+2hkZJgwQaxlHgQirer0TUh2VQ08wpxfWHAasPUGYNws0eCL79iAJY2bSJk1mlonWc= X-Received: by 2002:a05:651c:231d:b0:30c:433a:2886 with SMTP id 38308e7fff4ca-30d727312f3mr68349021fa.8.1742873470043; Mon, 24 Mar 2025 20:31:10 -0700 (PDT) MIME-Version: 1.0 References: <1831838.1742656359@sss.pgh.pa.us> <80506.1742660683@sss.pgh.pa.us> <461405.1742691859@sss.pgh.pa.us> <1189112.1742869660@sss.pgh.pa.us> <1192185.1742871390@sss.pgh.pa.us> In-Reply-To: <1192185.1742871390@sss.pgh.pa.us> From: Sami Imseih Date: Mon, 24 Mar 2025 22:30:59 -0500 X-Gm-Features: AQ5f1JoSxzp7IEgc9pct9ySwe9WhULaUEx6p-g4Mu69vfSieqImsUroud7mbIcY Message-ID: Subject: Re: query_id: jumble names of temp tables for better pg_stat_statement UX To: Tom Lane Cc: Michael Paquier , Christoph Berg , PostgreSQL Hackers , ma lz Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > Sami Imseih writes: > > I agree that some may want stats to merge for the same tables, > > and others may not. I will suggest this with some hesitation, but why not > > make this behavior configurable via a GUC? > > We recently introduced query_id_squash_values for controlling > > the merge of an IN list, maybe this is another queryId behavior we should > > provide a configuration for? > > I don't like that GUC and I would not like this one either. We > learned years ago that GUCs that change query semantics are a bad > idea, but apparently now we have hackers who need to relearn that > lesson the hard way. (Admittedly, this isn't quite *query* semantics, > which perhaps lessens the blast radius. But I think we're still going > to regret query_id_squash_values.) query_id_squash_values has a much weaker argument to exist than a guc to control the use of alias vs OID. Why would anyone not want to squash the IN list? maybe we should revisit this decision in that thread. With that said, if everyone is OK with the behavior change of pg_s_s with this patch, I will concede. FWIW, I do think this for most cases, the proposed behavior is desirable. I just worry about the users who rely on the OID being jumbled behavior, and have no way to revery. -- Sami Imseih Amazon Web Services (AWS)