Re: Custom variables and flags, again
От | Tom Lane |
---|---|
Тема | Re: Custom variables and flags, again |
Дата | |
Msg-id | 15925.1226887663@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Custom variables and flags, again (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>) |
Список | 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 по дате отправления: