Re: Custom variables and flags, again

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: Custom variables and flags, again
Дата
Msg-id 20081117094642.81E6.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Custom variables and flags, again  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Custom variables and flags, again  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:

>   void DefineCustomVariable(enum config_type type, const void *variable);
> What happens
> when we add some field or other to those structs?

I considered the case and chose the new interface because it behaves
*well* in the case. We can freely add new fields at the end of structs
(config_generic and config_<type>) as long as zero means 'default' in
the new fields. Unassigned fields in struct variables are filled with
zero in C.

There are problems when we modify the middle fields in those
structs, but it means modification of existing arguments in
DefineCustomXXXVariable(); The same problems occur in both
implementations.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Devrim GÜNDÜZ
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Enable script to generate preproc.y in build process.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Custom variables and flags, again