From: | Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com> |
---|---|
To: | Robert Treat <rob(at)xzilla(dot)net>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
Cc: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Clarify VACUUM FULL exclusion in total_vacuum_time docs |
Date: | 2025-07-15 23:12:22 |
Message-ID: | b27ed7be-4289-4109-ad78-6d427af4d8d0@oss.nttdata.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On 2025/07/15 23:27, Robert Treat wrote:
> On Tue, Jul 15, 2025 at 1:44 AM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> 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 like
>>>> 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 new
>>>> 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,
--
Fujii Masao
NTT DATA Japan Corporation
From | Date | Subject | |
---|---|---|---|
Next Message | PG Doc comments form | 2025-07-16 03:57:59 | Creating Database Querry in psql CLI |
Previous Message | Tom Lane | 2025-07-15 20:38:13 | Re: please define 'statement' in the glossary |