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 1x1W2f-005G2N-0N for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Sep 2026 21:29:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x1W2e-008J3s-0K for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Sep 2026 21:29:16 +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.96) (envelope-from ) id 1x1W2d-008J3k-2b for pgsql-hackers@lists.postgresql.org; Tue, 01 Sep 2026 21:29:15 +0000 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x1W2b-00000002R8I-26iW for pgsql-hackers@lists.postgresql.org; Tue, 01 Sep 2026 21:29:15 +0000 Received: by mail-qv1-xf30.google.com with SMTP id 6a1803df08f44-90e9e042ee1so4157206d6.1 for ; Tue, 01 Sep 2026 14:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788298151; x=1788902951; darn=lists.postgresql.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=q6MiJjPaHI801y1DjFt061luDDMRxIhgl4D34wPBK78=; b=DwfmBIXYG6BiKUdW20XKQVkEWrOkztvYw6lq9JgE4aIZeK2AiPGZOQ2AUWrV1serEo 2ef/mUt6oFPlZNMV272FUa29lz5p0ZHi0SNgXe7uzsuxXb0mZS9aIhfVTlCBYWGFgXUJ p1mF/WVPCU2OCCg0MPzD0A7CqZrpzUeLxTqsv53Nx/p4cbg566fPGzr98z2bY5tOXHo7 vie1AJAmcdMtGj96nKfaIrZ9B4JRnsRuCdtwtOQxriVtn6uorBqaRtdXAjBO6x0isH3D gctYVBqHUziRd89I4B+hVwIrb75vHaj5wOijyp1xG6xx/hxPLpj/GNE919n7YNs4PwIy WtYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788298151; x=1788902951; h=in-reply-to:content-disposition:content-type: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 :content-type; bh=q6MiJjPaHI801y1DjFt061luDDMRxIhgl4D34wPBK78=; b=qRRbMZO7x9AC1bd6hdhmHCreUz9Hdsi3HClBBW6VkNo+n33ikrxIHXrcz4+uOpRG8b pRrB8mioH1PdcbHh3/LOdhW5vjQGh4MYXMa9rWO114XnKBLXsKjBOmlLZD+8FtJgyn18 ndSCXn7Qi6pElwP4OkZWI6a3IF0wRqX8vePW1vLveZjz58nbRLo4Hwd3hPwblDt7XOLg oGYIA1O55UHKSPkkucHLbBaAgn7cy6VA3FU6rlriMrVihRo86BHDU9DK6XEUMwY/JpZl WW55ChqX71tMb8mzs7CKCeMv12z69Soja3w6+k2NLKM5QO6sAqkASkLh/ZH3KiQrw2Zw BRHA== X-Forwarded-Encrypted: i=1; AKwUvBx9eNX7m8ko/LAvYpg0yBWPUCpRHDvABXBR0MSXcuXCx5gxGJ1fggHaNaPBRM/2CdSbZ5Ggva48qHSvbTnI@lists.postgresql.org X-Gm-Message-State: AFuF++nPNYsMWAbKKYw0B4jdacWOFyilJcvUhhJgIzZ9Ua4GCwG2UMHZ cariaXJlbUexkFSlA02HXJKV3AnOMq3sKllWjN3GIvUvRlw8q3Bwan6c X-Gm-Gg: AYBFou2vZMYnmBfvpQvvkksiWys6Rqf13QZchoeIlXR4Yz00rneQNhRJH1XYgCxb3PF W1Ke3C4PaVXTO8kMITaGbLraeHBUMeIuDvxvdTZGC72v/V5pI+9PZztXXibww9Umj+3r2lYKsIm lahPo2qAM/1uM54zOQiKe55Ryh5ZBpvENJuJ7YiKLNb8sR+OiSg0alFcl4Rz5K6Hi1SdCbM+ZAI 1n1MCmS/QMaLGENG+Asl/wukkPlJvOl/jQc7sjbiX1A+HG36QYsU6bbpwCtlUY9O3rAYkq2msBq nqieq4gZVibMS5uoiQ1ME6I23h1pYkVqrRcn2QsDJVUoou2h1RwgZeZbT9ZHGWNm+3x8IcvEo4H +qKNQK807aJo18/jMKQG+wUT8hlwyfyinjCLmBgaCnyQoxx1RwxMuxYCCWpAmzxN6+7Up7eVEl9 EgLiukRgxfaniVOWguSCuARFw2kN5vSXymr8J7sBHFazPVEvSCpgAPC5Qzk4DXup5ogJp/80WJn dT6fqcR9eiy1k04NSIaOrQy5TzGxjtvDwtITaFO+wGNiK9BTenOSbU7k7yx+TJUAtE1mGHf6hMp /PpS7mbNEGqjscM= X-Received: by 2002:a05:6214:2628:b0:90e:961f:7b82 with SMTP id 6a1803df08f44-90e9f201fc3mr12087926d6.6.1788298151437; Tue, 01 Sep 2026 14:29:11 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-90e9eee7f12sm3069866d6.39.2026.09.01.14.29.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2026 14:29:10 -0700 (PDT) Date: Tue, 1 Sep 2026 16:29:08 -0500 From: Nathan Bossart To: Michael Paquier Cc: Sami Imseih , Corey Huinker , pgsql-hackers@lists.postgresql.org 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, Aug 31, 2026 at 02:33:40PM +0900, Michael Paquier wrote: > On Sun, Aug 30, 2026 at 07:21:07PM -0500, Sami Imseih wrote: >>> Claude advises me that removing the redundant filter clause was a mistake. >>> See the attached patch. >> >> Yes, that was a miss. I did a quick confirmation of the execution plans >> with and without the patch and the change LGTM. > > The extra time taken would really hurt when retrieving statistics. > There may be an argument in simply reverting 4b5ba0c4ca52, as one of > the reasons for it was to remove the qual you are re-adding, but I > cannot get excited about using two sets of catalog names for tablename > and spcname vs a single OID array approach in the long run. Committed, thanks for reviewing. -- nathan