Re: [HACKERS] GUC variable set, TODO

2004-04-22 Thread Thomas Hallgren
Here's a draft of the solution that I'm currently working on for custom GUC variables: A new string variable 'custom_variable_classes' is introduced. This variable is a comma separated string of identifiers. Each identifier denots a 'class' that will allow its members to be added without error.

Re: [HACKERS] GUC variable set, TODO

2004-04-19 Thread Fabien COELHO
Dear Thomas, I might have some time left to spend on the item Allow external interfaces to extend the GUC variable set filed under Administration on the TODO list. I'm thinking of an approach with the steps: 1) Increasing my own understanding of the GUC code Well, I did that yesterday

Re: [HACKERS] GUC variable set, TODO

2004-04-19 Thread Tom Lane
Fabien COELHO [EMAIL PROTECTED] writes: . All guc variables are described in static structures initialized at loadtime. if it is to be extendable, it means that you have break this, No, you don't. . There is also a dynamic sorted array that allows to find all variables descriptions

Re: [HACKERS] GUC variable set, TODO

2004-04-19 Thread Fabien COELHO
Dear Tom, . All guc variables are described in static structures initialized at loadtime. if it is to be extendable, it means that you have break this, No, you don't. Well, sorry, I'm used to show my lack of imagination on the list;-) . There is also a dynamic sorted array that allows

Re: [HACKERS] GUC variable set, TODO

2004-04-19 Thread Tom Lane
Fabien COELHO [EMAIL PROTECTED] writes: Ok. I understand that you suggest to Thomas that he should only touch the search array to insert new pointers to guc description structures, which may come from outside or be newly allocated, without touching the existing static versions for internal guc

Re: [HACKERS] GUC variable set, TODO

2004-04-19 Thread Thomas Hallgren
Tom Lane wrote: Fabien COELHO [EMAIL PROTECTED] writes: Ok. I understand that you suggest to Thomas that he should only touch the search array to insert new pointers to guc description structures, which may come from outside or be newly allocated, without touching the existing static versions for