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.96) (envelope-from ) id 1w2ENd-0006eb-0U for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2026 20:17:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2ENb-00ClJC-1G for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2026 20:17:36 +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.96) (envelope-from ) id 1w2ELO-00ChO1-0L for pgsql-hackers@lists.postgresql.org; Mon, 16 Mar 2026 20:15:18 +0000 Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w2ELL-000000004HM-2oQT for pgsql-hackers@lists.postgresql.org; Mon, 16 Mar 2026 20:15:17 +0000 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-41576c5c01cso3105785fac.3 for ; Mon, 16 Mar 2026 13:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773692116; x=1774296916; 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=FDSCV5rMKfEK0Oy7jMU1eBQ7G9u4XAzZ7fI5xPeUNik=; b=eCQD71e/kn3Sdvp3K3LtSTNGfi0RGphBHvTLtsiLoCfZcV47CoQP9RgHhdjWFAq1Fu HGeEIvUyxAQYgIZsvfqywxqISB/knlsSQYODi8ovU6xAXyETaW8kFOXdhUvY05mO1BOV k+JwItnjt88w74Rdd+immAG6oZkuf3xYDqtG9uRvng4iz8pc6awual6eIq4+HZl8C26G ZRlYxGGCJycj8Tc9QYdjTcDLtQ7/SwvrL557FU29+YMkVRmYUBsPggJMw1zss86O9pnf SLBkEO5NM3yHTUaF9Xpz3JRvGTEnIsSQFGfNq6LMl/0bUgiJoayCAe+Tm85yAjr/fiiE TKtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773692116; x=1774296916; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FDSCV5rMKfEK0Oy7jMU1eBQ7G9u4XAzZ7fI5xPeUNik=; b=suNPlt0/rDnZnbMsimEgpB4eTor3hlf72J9DwSUEYaAIhy8IVcUCEgtYgTiZ7WRvXT XWxy4/0oq7a1NVst5a0by/6urPEMXOv0utXQSa/v39kvhmVx2aaauucO/MoVdEaUCjh4 yApjsdcQI5hf2vavIwBLDNOgl6Rz0Q8bnqA3kujrr8V5MseZAGxpesR1dnbWY9GbzJmb wPgOkfemi5iaSTI2vp+oMDIfCKNdU2Ms/ToeFmK/hxJSLtQNPRHfX6RcBd1HGkeQ1PHZ /om4g2ygFzjYnwtfne6XS561NXGSI2/CwuYl9081Vb553o3SH5+99pwXqxEpcDZ1bP5R 2+WA== X-Forwarded-Encrypted: i=1; AJvYcCVs6UKTQypNtxmAIZ5955eNQlKdfUCsCQMXE0lDs7mlmeFl8HJmYzLSJm59cuVTFKe30K7zNF0NjHEDmU3A@lists.postgresql.org X-Gm-Message-State: AOJu0Yyzou0VTl4Ukiievo6ETAOsZyODgeJkavN9G+ligdgNX04a90jm +XhoprOYvcRwMkbAKbSdC0dLwDu0BCVCjH0CQAuCWZxKEN+hAtGWDpCZ X-Gm-Gg: ATEYQzyNgYb8Fa55mcfuV/AIMb6GNVss8VSfOR5QNQtzycRB1L64+Hd69nDzS6d9EQU SQzXu0zyAPxJNSnSzG7pRJRqgtYn3rISFKqe/U59psBT3AszVf123M6yiiSjE22CcAliMOgJX41 FT1pO/6D1xvFH00GMk+rHnVqErVC2cIU2yAg/v2gj/yIowGVmZ6Jobx3igu7y1ya3cNY77dM5j1 mmLDZNMhIjEqVlrqkjsqjw2Otmg65mzSc3TQdhpCoyC20aCLD1pIPH3zuNdXT1ZLMmnuBdecs5r huVguTgzLHvTFmLKvgoShZt25904cYpTEX9CTZz+T3KjlMtFdeeH24oNKCzYSYl0CkCd85r6Oze v9wBf2Aa7fJfLGADn8QyzjR9YgwfyxlecDNNYXEz5GETnHmBwNA8wzGBlMO8OGQOLyp4aECBgsy xnNVYU+qxq7R9IKknmQ6AGu7Lc09vUv1C+yCaduiSvrNxFVBEg3TQlwyxNyNlXxFX0PSqsHN8Cq 8xTaEXClgvQy0Kxetp1Gw== X-Received: by 2002:a05:6870:8a13:b0:404:1a4b:2e91 with SMTP id 586e51a60fabf-417b906db5emr8207353fac.2.1773692116535; Mon, 16 Mar 2026 13:15:16 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4177e2df1ddsm17268175fac.9.2026.03.16.13.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2026 13:15:16 -0700 (PDT) Date: Mon, 16 Mar 2026 15:15:14 -0500 From: Nathan Bossart To: Corey Huinker Cc: Sami Imseih , pgsql-hackers@lists.postgresql.org, michael@paquier.xyz Subject: Re: Add starelid, attnum to pg_stats and leverage this in pg_dump Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Mar 16, 2026 at 04:04:23PM -0400, Corey Huinker wrote: >> I left the expr_attnum stuff out. It seems to make this patch quite large >> and complicated, we don't plan to use it for the pg_dump patch, and I'm not >> sure about showing users a "synthetic attnum" that seems to have no other >> point of reference. Would this information be useful in pg_dump somewhere? >> I'm curious to hear more about the intent. > > expr_attnum was something that Michael Paquier had lamented that the view > didn't have. There is obviously no present need for it, as pg_dump isn't > being modified for extended stats at all. Okay. I think I'll continue to leave this one out for now. >> I didn't see much value in adding attnum here given the size of the changes >> to the expected output it produces. > > Same reasons for putting that in - people had lamented that we couldn't > order the dump by attnum, and ordering by attname feels weird somehow. > Again, we don't presently need it. This note was about adding attnum to the pg_stats_stable view in the test. I don't have any problem with adding it to pg_stats. -- nathan