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

From ITAGAKI Takahiro
Subject Re: Custom variables and flags, again
Date
Msg-id 20081117094642.81E6.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to Custom variables and flags, again  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Custom variables and flags, again  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Devrim GÜNDÜZ
Date:
Subject: Re: [COMMITTERS] pgsql: Enable script to generate preproc.y in build process.
Next
From: Tom Lane
Date:
Subject: Re: Custom variables and flags, again