From: | Nikolay Shaplov <dhyan(at)nataraj(dot)su> |
---|---|
To: | Nathan Bossart <nathandbossart(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Robert Treat <rob(at)xzilla(dot)net>, Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, Albe <laurenz(dot)albe(at)cybertec(dot)at>, Gurjeet Singh <gurjeet(at)singh(dot)im>, Will Storey <will(at)summercat(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: vacuum_truncate configuration parameter and isset_offset |
Date: | 2025-03-24 19:30:41 |
Message-ID: | 39858549.XM6RcZxFsP@thinkpad-pgpro |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
В письме от понедельник, 24 марта 2025 г. 22:11:19 MSK пользователь Robert
Haas написал:
> I think that the answer here might be that Nikolay doesn't like this
> because it interacts badly with his "New [relation] options engine,"
There is no problem with adding isset_offset into "New [relation] options
engine", not a bit deal. But it will break all internal logic of reloption.
Both current version and my patch
> And if I'm wrong in thinking that, then I would like a detailed
> technical argument explaining exactly why.
You can't have both isset_offset flag and default_value. Either one or another.
You can't have them both, it will make whole design inconsistent. We already
have default_value. Even for boolean.
If you want custom behaviour when option is not set, you set unreachable
default value. This is the way it is done for _all_ options that has custom
behavior for unset option. Even those that a technically boolean. Why
vacuum_truncate should do another way? Either do it the way it have been done
before, or suggest total redisign for all oprions that has custom unset
behaviour via unreachable defaults. This will be consistent.
--
Nikolay Shaplov aka Nataraj
Fuzzing Engineer at Postgres Professional
Matrix IM: @dhyan:nataraj.su
From | Date | Subject | |
---|---|---|---|
Next Message | Sami Imseih | 2025-03-24 19:31:17 | Re: Proposal - Allow extensions to set a Plan Identifier |
Previous Message | Nathan Bossart | 2025-03-24 19:26:17 | Re: vacuum_truncate configuration parameter and isset_offset |