Re: Custom variables and flags, again - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Custom variables and flags, again
Date
Msg-id 15925.1226887663@sss.pgh.pa.us
Whole thread Raw
In response to Re: Custom variables and flags, again  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-hackers
ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Perhaps more to the point, guc_tables.h is a file that we don't even
>> want the majority of the backend including.  Why would we think it's
>> a good idea to make that part of the public API to external modules?

> Hmmm... do we need to move config_group enumerations to guc.h from
> guc_tables.h ? Or, we cannot expose the group field and always use
> CUSTOM_OPTIONS for custom variables.

My inclination is not to expose that, and just use CUSTOM_OPTIONS
always.  As was noted earlier, the config_group enumeration seems
really ad-hoc and subject to change, so keeping external modules away
from it seems the best thing to me.

We do need to move some of the GUC flags #defines (not sure about all
of them...) into guc.h, if we want to take the position that external
modules shouldn't import guc_tables.h.
        regards, tom lane


pgsql-hackers by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Re: Custom variables and flags, again
Next
From: "Robert Haas"
Date:
Subject: Re: Custom variables and flags, again