Re: Improving display of octal GUCs - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Improving display of octal GUCs
Date
Msg-id 767661.1783275565@sss.pgh.pa.us
Whole thread
In response to Re: Improving display of octal GUCs  (Tatsuya Kawata <kawatatatsuya0913@gmail.com>)
Responses Re: Improving display of octal GUCs
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Split fd.c into multiple source files
Next
From: Noah Misch
Date:
Subject: ri_Fast* crash w/ nullable UNIQUE constraint