Re: vacuum_truncate configuration parameter and isset_offset

From: Nikolay Shaplov <dhyan(at)nataraj(dot)su>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Nathan Bossart <nathandbossart(at)gmail(dot)com>, Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <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-26 17:29:17
Message-ID: 5620963.MSiuQNM8U4@thinkpad-pgpro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

В письме от среда, 26 марта 2025 г. 18:41:13 MSK пользователь Robert Haas
написал:

> What I'm upset about is that it feels to me like Nikolay is trying to
> win the argument by yelling.

I do not think it is fair. When votes are against you (and I did not ask
anybody else's help for it) it turned out, that I am yelling, and thus voting
is not valid.

I do not demand enum, you can create new reloption data type that can be true
false and unset. I even would agree with isset_offset, it you manage to make
code consistent. I doubt anybody manages do it, but may be I am wrong. You did
not even try, you just insist on keeping code inconsistent, because nobody
care. Nikolay cares, but he is yelling while caring, so let's set him aside.

The only thing I am asking for: please keep code consistent. Better keep
reloption core the way it was, but if it is not possible, then keep it
consistent then.

Enum is the cheapest way to achieve the goal Nathan want, and keep code
consistent. Cheapest, not the best.

When the dust settles down I will try to invent boolean-based data type, that
would not be ugly as this enum, and even may be suitable for
vacuum_index_cleanup option. I see there is a demand for this. But this will
need carefull thinking and development. And starting from ugly Enum with
boolean values would be much easy then from boolean with isset_offset.

--
Nikolay Shaplov aka Nataraj
Fuzzing Engineer at Postgres Professional
Matrix IM: @dhyan:nataraj.su

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2025-03-26 17:40:19 Re: Current master hangs under the debugger after Parallel Seq Scan (Linux, MacOS)
Previous Message Greg Sabino Mullane 2025-03-26 17:14:43 Re: Logging which local address was connected to in log_line_prefix