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 1twvw1-0017us-7W for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 04:30:41 +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 1twvvz-00FIpd-U1 for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 04:30:39 +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 1twvvz-00FIpU-Jx for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 04:30:39 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1twvvy-000ycv-0G for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 04:30:38 +0000 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-30613802a6bso53964471fa.1 for ; Mon, 24 Mar 2025 21:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742877036; x=1743481836; 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=vQPMQ8wICWmXf9Yux9p9l0PlS+/PSqPNWwB85Wta+U8=; b=BKktTw1iYvDSQwtWfL6QpdkBXU4KDUDN6zZPXO/RZnSfX3iFhJ9tFV3hKhmNn1/hBh VZpZ1WhDOe7184gKK8ouC1rHtXvJLLVxtcv+0/EjNq0RFiwjvESLA9nlloqGe5gu13ab /ib+yYC4Kp04kDNMyb+AHwU9y/y2ByX/Xc5h+uWyWhKWYi4WuSHPTUNIbktPOFfVF1ru aRBtCNql6VmNTKoR6OzJGwan+Bg7AkhDYcekkx57TPcWCTTM0VAM/0CYvhFxdTjrRQ3P PiontACkRqDAAGmVcoJA3J5YHs5JtALYhom7tkNOYHoUNNAOs+pHiuKVSuAWt8UyzXGY yjFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742877036; x=1743481836; 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=vQPMQ8wICWmXf9Yux9p9l0PlS+/PSqPNWwB85Wta+U8=; b=hiCPJoNOR23kag6C94+vv7pjg/pvPxNcC12zrlSrXYVh1jHrIQSAmkWz0chuJLOrqt X7khh3RaDwUIMfJqRTcK1WDNOsUTRpriTrQPVaK59HIZL+iUimyFLp9jyGv9zKVeP/sy ETc1jEdDiwgDH9xx4uty3EKblUADHABKOGbBv37ZsGOJDgL5FVdDo8Q7S+YT46ZWRiVG uKSppsMlSyNI7H7DiR2EVrgqM7tV2T9VE8zmPar1w5ZkycDLDDEZ1MKdyu7UPJ2tYHmH DWTShlzhlBOiHK0WszoFHpMue8K6Y1DalgTbzzWflwtKIXbmCSbDRhdsqx2OsgEzNxbL WD0g== X-Forwarded-Encrypted: i=1; AJvYcCUOyO3VvtZcEhroioWggf1VA1/h4r6xnQKng+pCQRBKN4zV/u7p8nuSgQ9Bn0dgBqBVnYCc1h5e79of7PSj@lists.postgresql.org X-Gm-Message-State: AOJu0YzBczxwy/OLFOymSzNzveJArPK8ZuM4/Q5NAt3CIsFnzHQO0E+m qHu7W24EFCxNppX/MbSpicVtbDfzrynHUgCbQ6nNSd2pZ03ziON1PAyD9L5rPa1C/2Z7+bLkUKp fv/19gG32GHomPviU3n1vz+l8bqam6h1R+k5eug== X-Gm-Gg: ASbGncuwt/HlF8qtm3eJXxUguYtDna24qjTiI13WIthTUTfVx6aHeFwsLy0rCfXFoCc 5XBh0KiMldjJBHova0l/hRBkcx9hdbYPNC/ZZXqxCyPSXywAZRfE1bk5xcJ8P8VILAE31/wEbSk 4dhBR8XVaLi7248BMdXpWVE1/pnzXexxHaHB8= X-Google-Smtp-Source: AGHT+IE2vv5Aft76WZmKWfwvywImHRy6wZ1BuqoLmfXS8WoxxbnKo4tLr/cxAmjQKTGiLQuJHnQ9wYfiA3i0MUs5Eg0= X-Received: by 2002:a2e:90d9:0:b0:30b:b184:a8ef with SMTP id 38308e7fff4ca-30d7e234ef9mr42971101fa.14.1742877035737; Mon, 24 Mar 2025 21:30:35 -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: From: Sami Imseih Date: Mon, 24 Mar 2025 23:30:24 -0500 X-Gm-Features: AQ5f1JoV7Opn24iPaXa8Y_efX0EQSMdMyOhYAAC9MjHK4qRfHLX3zRQCyVDk--0 Message-ID: Subject: Re: query_id: jumble names of temp tables for better pg_stat_statement UX To: Michael Paquier Cc: Tom Lane , 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 > Exactly. Like Tom I'm not really worried about the proposal, but of > course I could prove to be wrong. I am ready to assume that bloat in > pgss entries caused by temp tables is a more common case. I ran installcheck-parallel with the patch and without the patch 3x, and the reduction in pg_s_s bloat is visible. The same entries are reused even when the regression database is recreated, as expected. ## without patch run installcheck-parallel 3 times postgres=# select count(distinct queryid), count(*) from pg_stat_statements; count | count -------+------- 41630 | 74776 (1 row) ## with patch run installcheck-parallel 3 times postgres=# select count(distinct queryid), count(*) from pg_stat_statements; count | count -------+------- 26301 | 73030 (1 row) >This part of the thread is digressing, but I'd on the side of removing > entirely the GUC and make the grouping of IN values the default. We > still have time to discuss that during the beta cycle, so let's do so > on its related thread. I will do that tomorrow in that thread. It would not make sense to introduce a GUC for that behavior and not for this. So, I am glad we discussed this here. Looking at the patches, I could not find anything else besides what was pointed out by Christoph earlier. -- Sami Imseih Amazon Web Services (AWS)