Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOaRN-0000io-Ka for pgsql-committers@arkaria.postgresql.org; Tue, 23 Mar 2021 06:22:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lOaRL-0008Nk-H1 for pgsql-committers@arkaria.postgresql.org; Tue, 23 Mar 2021 06:22:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOaRK-0008Nd-2N for pgsql-committers@lists.postgresql.org; Tue, 23 Mar 2021 06:22:55 +0000 Received: from [66.111.4.26] (helo=out2-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOaRG-00019F-RS for pgsql-committers@lists.postgresql.org; Tue, 23 Mar 2021 06:22:53 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 5B69F5C0045; Tue, 23 Mar 2021 02:22:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 23 Mar 2021 02:22:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=3iLiB6/nVVXkKTxklNyLueHTgHd Dces5pV9iiKIONrQ=; b=d4EQWdRuVfzGqaYCaDFugwtDevOHin+ZtwWfoOSueuB 6NO9ot791IsbEX94jIBK5Utyoo8bL5Y1BruMXPhF8zbeStydpfewX1ZiW2NgmRsl fs0crIzgXZVnjuhdmUNdGB1zA4QS6ccYhoxx9i5/vKRCZ5EMAmGx8cn2x+pP6qJq ptYIVW03MJFitUAPVAPTpSMmekWzC9jgz6jVosx1qtsqhf/mhGWc+LWWU+tYHstP gBMeeRND5ksMR0kJvswm+Rx7iDFJntjKyaI+ARhmo1dVAQJrzCjEM/bQlxofi9Cz ZRk/hSHCupw/QVo2V5omO0VHqmaTE26P9vrSMJv/3Sg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=3iLiB6 /nVVXkKTxklNyLueHTgHdDces5pV9iiKIONrQ=; b=KHqeOakeErfweDuU0mldQK Ln+nK7K64FnWilF5oEwQvSOPbl7I82toXivqqqhEzsvy2WKDVwnzf4TVPljp4EdB SpEdbG12KaOCsiOlXo6cqK7WYJc91FaTBBXe8XXE5IZPng/Wdy6RTTdhG6wi7ndw MX0W8FJPCed05oZAD9BO6+d4zEVJ6oQeVpjO+Sbw1OL93fkBxJMn4TLI/nFDW/tB guaX1RAxyhlkxvzyG9UK6BNv8ga4/tlP0t5aA2/9rXPKYdIBHJ/pGPyGzD5mMvMF Rs7c7yTUAvvkw9CFVfns47RJgN016iQR4MrNgqlFcUx3qDQCXAFbbiigWiicO4zw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeghedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 539CE24033F; Tue, 23 Mar 2021 02:22:37 -0400 (EDT) Date: Tue, 23 Mar 2021 15:22:32 +0900 From: Michael Paquier To: Peter Geoghegan Cc: pgsql-committers Subject: Re: pgsql: Add per-index stats information in verbose logs of autovacuum Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="A24L19DrgU/+ilg6" Content-Disposition: inline In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.26 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --A24L19DrgU/+ilg6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 22, 2021 at 10:36:03PM -0700, Peter Geoghegan wrote: > It suggests that the index file can shrink. As if the remaining pages > are left now that the pages we deleted have been returned to the OS. I > think that this same line of output should look like this instead: >=20 > index "dups_idx": 1431 pages in total, 1343 newly deleted, > 1427 currently deleted, 84 reusable I like the consistency of using "pages:" at the beginning of the line as all those fields refer to pages, and your formulation makes inclear what the second, third and fourth items on the line refer to. What's newly-deleted? Tuples? Pages? Pages, obviously, if you know what this is about. > To be clear, I agree that it would not be sensible to make the > log_autovacuum_min_duration output 100% consistent with VACUUM > VERBOSE. I just think that "%u remain" is misleading. It's just that > one detail. Saying that, I like your suggestion of using "total" or "in total" instead of "remain" for the first item. -- Michael --A24L19DrgU/+ilg6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmBZiSgACgkQnvQgOdby QH0GYQ/8DwlyKWeKa5gTCg+Jz5mI4dvMHpdwfUVaxGzvJEDQiR2e5ISYU9n3KBFb Z7yVGzcQu2Ihg8tQPrT+GZNv0uYeZvTZJMcQrnDQFrMjs+pw5U117NQI+i/y3r13 k5QTGELEFGTHgmmjzPsV9oZ2NevA+Dm6BEI9gRuurKgWpNvwxG0njXDxpe6pl8pZ OIMc3YftcIHBqUYOxXOhfxLJap4B05xYhumAJujTouPnD1zQRy/QM7m021DZ9Q1z 7d6SITYOC9LUFM4Iyesi4ejD9dgCtHpGBLFYiLA/rDDv6C09I/83NrCyIr603rn+ YfTZfLSraJmjvblwENH1Aw0mxIdJLfKqzn0Q8audgpHGOtZHFoGukmV74Gjv3im8 C7x1YzhB3JhmXLbxUd3DPAhj+YIwHtsyDnJrOEkMUUwU1267yYaVZ+dOYMfY2dyM KtJWPNs0XJxApQD9vRyRbS1h8CksqXoJB3xJHr18CdDtiC0q78pYZJ5lmoRuieSB Oxry0uGnyrNwzuLdrLMRLf4nvxVPY+ZaRXzJHEzAeUdbEFcd21Wc9W2Emvmduwg2 p45llBbjNY2+/KoMthcMYfq9u3ugk4+/Qp1NDiAohQzhnvj9f6eGbXF266/2jDpq l/GeReDgilLckOdwkXqWfE5/2lAi7Pg1mB+rs+k+XJDCw6o16Cc= =fQrH -----END PGP SIGNATURE----- --A24L19DrgU/+ilg6--