Re: GUC values - recommended way to declare the C variables?

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Peter Smith <smithpb2250(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: GUC values - recommended way to declare the C variables?
Date: 2022-10-27 02:49:34
Message-ID: 20221027024934.GA16921@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Oct 27, 2022 at 11:33:48AM +0900, Michael Paquier wrote:
> On Wed, Oct 26, 2022 at 09:14:37PM -0500, Justin Pryzby wrote:
> > It seems like you're reviewing the previous version of the patch, rather
> > than the one attached to the message you responded to (which doesn't
> > have anything to do with GUC_DEFAULT_COMPILE).
>
> It does not seem so as things stand, I have been looking at
> v5-0001-GUC-C-variable-sanity-check.patch as posted by Peter here:
> https://www.postgresql.org/message-id/CAHut+PuCHjYXiTGdTOvHvDnjpbivLLr49gWVS+8VwnfoM4hJTw@mail.gmail.com

This thread is about consistency of the global variables with what's set
by the GUC infrastructure.

In v4, Peter posted a 2-patch series with my patch as 001.
But I pointed out that it's better to fix the initialization of the
compile-time GUCs rather than exclude them from the check.
Then Peter submitted v5 whcih does that, and isn't built on top of my
patch.

> In combination with a two-patch set as posted by you here:
> 0001-add-DYNAMIC_DEFAULT-for-settings-which-vary-by-.-con.patch
> 0002-WIP-test-guc-default-values.patch
> https://www.postgresql.org/message-id/20221024220544.GJ16921@telsasoft.com

That's a separate thread regarding consistency of the default values
(annotations) shown in postgresql.conf. (I'm not sure whether or not my
patch adding GUC flags is an agreed way forward, although they might
turn out to be useful for other purposes).

--
Justin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2022-10-27 02:49:53 Re: GUC values - recommended way to declare the C variables?
Previous Message Amit Langote 2022-10-27 02:41:55 Re: generic plans and "initial" pruning