From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tatsuya Kawata <kawatatatsuya0913@gmail.com>
Cc: fabriziomello@gmail.com, pgsql-hackers@lists.postgresql.org, Jobin Augustine <jobinau@gmail.com>
Subject: Re: Improving display of octal GUCs
Date: Sun, 05 Jul 2026 14:19:25 -0400
Message-ID: <767661.1783275565@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHza6qeP_p2xHq0BPOdP4iTKD5fx3+Dbcr52QWqjSsVp3i4LkQ@mail.gmail.com>
References: <3006313.1782851535@sss.pgh.pa.us>
<CAFcNs+pESmHx0qps0s8q7r6Jq2hVOTm_pyQCdAfqrDY1m=EwMg@mail.gmail.com>
<CAHza6qeP_p2xHq0BPOdP4iTKD5fx3+Dbcr52QWqjSsVp3i4LkQ@mail.gmail.com>
Tatsuya Kawata <kawatatatsuya0913@gmail.com> writes:
> One minor note: I considered whether check_GUC_init() should
> validate GUC_SHOW_IN_OCTAL (e.g. not allowing it together with a
> show_hook, or with other flags). But some GUCs intentionally use a
> show_hook, and check_GUC_init() validates only a few combinations
> today, so I don't think it's necessary here.
Yeah, I think there actually could be a use-case for having a
show_hook along with GUC_SHOW_IN_OCTAL: if you want the value shown in
octal but the calculation of the effective value is more complicated
than just "show the variable". So I don't want to reject that.
Perhaps there's a case for checking that GUC_SHOW_IN_OCTAL isn't
applied to a non-integer GUC, but I can't get too excited about that.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, kawatatatsuya0913@gmail.com, jobinau@gmail.com
Subject: Re: Improving display of octal GUCs
In-Reply-To: <767661.1783275565@sss.pgh.pa.us>
References: <3006313.1782851535@sss.pgh.pa.us> <CAFcNs+pESmHx0qps0s8q7r6Jq2hVOTm_pyQCdAfqrDY1m=EwMg@mail.gmail.com> <CAHza6qeP_p2xHq0BPOdP4iTKD5fx3+Dbcr52QWqjSsVp3i4LkQ@mail.gmail.com> <767661.1783275565@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox