Re: generic reloptions improvement

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: generic reloptions improvement
Дата
Msg-id 20081222162453.GE10220@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: generic reloptions improvement  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Ответы Re: generic reloptions improvement  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
ITAGAKI Takahiro wrote:

> Alvaro Herrera <alvherre@commandprompt.com> wrote:
>
> > Here's a patch for improving the general reloptions mechanism.  What
> > this patch does is add a table-based option parser.  This allows adding
> > new options very easily, and stops the business of having to pass the
> > minimum and default fillfactor each time you want the reloptions
> > processed.
>
> You use struct relopt_gen (and its subclasses) for the purpose of
> both "definition of options" and "parsed result". But I think
> it is cleaner to separete parsed results into another struct
> something like:

Thanks for the suggestion -- yes, it is better as you suggest.  I think
putting the default on the same struct was just out of laziness at
first, and inertia later.

Here's the next version, which also fixes some particularly embarrasing
bugs.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Вложения

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: encoding cleanups in cvs repo
Следующее
От: Robert Lor
Дата:
Сообщение: Re: DTrace probes patch