Re: Getting available options

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Getting available options
Дата
Msg-id 28390.1203548367@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Getting available options  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Getting available options  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> On Tue, 2008-02-19 at 14:22 +0100, Magnus Hagander wrote:
>> I'd like to add a way for a client (in this case, typicallyi pgadmin,
>> phppgadmin or similar) to get the available options on the server for the
>> GUC settings we have that take fixed options. This is to make it possible
>> to generate pretty dropdown lists of the options.

> How will this work with custom variable classes?

Anything like this will involve an API change in the guc stuff, so
that doesn't seem insurmountable.

I like the idea that was mentioned upthread of creating a new "enum"
category for GUC variables, instead of continuing to abuse the rather
inefficient "string" category for the purpose.  One reason is that
we then would not be faced with making an incompatible change in
the arguments of DefineCustomStringVariable.
        regards, tom lane


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

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: Permanent settings
Следующее
От: "Gevik Babakhani"
Дата:
Сообщение: Re: Which MemoryContext?