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 1ubop6-005fPj-TN for pgsql-docs@arkaria.postgresql.org; Tue, 15 Jul 2025 23:12:32 +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 1ubop4-006AE6-Rr for pgsql-docs@arkaria.postgresql.org; Tue, 15 Jul 2025 23:12:31 +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 1ubop4-006ADy-K5 for pgsql-docs@lists.postgresql.org; Tue, 15 Jul 2025 23:12:31 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1ubop2-007Tst-1b for pgsql-docs@lists.postgresql.org; Tue, 15 Jul 2025 23:12:30 +0000 Received: from [192.168.11.3] (p1696134-ipoe.ipoe.ocn.ne.jp [118.0.93.133]) by oss.nttdata.com (Postfix) with ESMTPSA id C6D3D613B4; Wed, 16 Jul 2025 08:12:23 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: Date: Wed, 16 Jul 2025 08:12:22 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Clarify VACUUM FULL exclusion in total_vacuum_time docs To: Robert Treat , Laurenz Albe Cc: "David G. Johnston" , "pgsql-docs@lists.postgresql.org" References: <2ac375d1-591b-4f1b-a2af-f24335567866@oss.nttdata.com> <213ce4a8cc0e481229bdf2198f5c44285eb3e53a.camel@cybertec.at> Content-Language: en-US From: Fujii Masao In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025/07/15 23:27, Robert Treat wrote: > On Tue, Jul 15, 2025 at 1:44=E2=80=AFAM Laurenz Albe wrote: >> >> On Tue, 2025-07-15 at 01:51 +0900, Fujii Masao wrote: >>> >>> On 2025/06/18 6:53, Robert Treat wrote: >>>> I think the more cases where you document this behavior (and I do li= ke >>>> the idea of documenting it for total_vacuum_time), the more one is >>>> likely to think that places where it is not documented operate >>>> differently. To that end, I think documenting it for >>>> n_ins_since_vacuum as well is a good idea, but I don't feel strongly >>>> that it needs to be backpatched; the old documentation wasn't wrong >>>> per se, rather this is a documentation improvement as a result of ne= w >>>> development. >>> >>> Agreed. The attached patch updates the docs to clarify that both >>> total_vacuum_time and n_ins_since_vacuum exclude VACUUM FULL. >>> >>> Unless there are any objections, I'll commit this to master and >>> back-patch it to v18 only. Done, thanks! >> I think the patch is good. >> >> One question for me is whether we should use "VACUUM (FULL)" rather >> than "VACUUM FULL". >> >> On the one hand, the documentation (and most users) still use the >> old syntax without parentheses almost everywhere. >> >> On the other hand, reading the VACUUM reference page, I get the >> feeling that the new syntax with parentheses should be favored. >> After all, the old syntax doesn't support any of the recently >> added options and restricts the option order. >> >> So perhaps we should start propagating the parentheses more, and >> the documentation is the perfect place to do that. I'm not sure if changing it to "VACUUM (FULL)" is a good idea. In several places, the docs use "VACUUM FULL" to refer to the full vacuum operation as a name, rather than the exact command syntax. Changing all instances to "VACUUM (FULL)" might make the docs harder to read for users already familiar with the term "VACUUM FULL". That said, if many others prefer switching to "VACUUM (FULL)", I have no strong objection. In that case, we might also consider changing "EXPLAIN ANALYZE" to "EXPLAIN (ANALYZE)" for the same reason. > That might make sense, but how far we want to take it in the first go > around seems like a discussion that is best put forth in a separate > thread / patch. +1 Regards, --=20 Fujii Masao NTT DATA Japan Corporation