Re: Updates of SE-PostgreSQL 8.4devel patches (r1389)

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Updates of SE-PostgreSQL 8.4devel patches (r1389)
Дата
Msg-id 20090110004209.GL20555@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Updates of SE-PostgreSQL 8.4devel patches (r1389)  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Alvaro Herrera wrote:
> Tom Lane wrote:
> 
> > I guess I'm still wondering which part of this actually needs to be
> > hand-coded so that it can be flexible.  I'm envisioning the whole
> > loop replaced by something like
> > 
> >     FillRelOptions((void *) rdopts, options, &constanttable);
> > 
> > where the constant table contains entries like
> > 
> >     { "fillfactor", RELOPT_TYPE_INT, offsetof(StdRdOptions, fillfactor) }
> 
> I attach a patch that does things this way (it includes the btree test
> code because I'm too lazy right now to strip it out).

The irony of doing things this way is that we've come full-circle from
the original coding of these routines (the main difference being that
the default values and checks no longer need to be written as code, but
rather as table entries).

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


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Updates of SE-PostgreSQL 8.4devel patches (r1389)
Следующее
От: Aidan Van Dyk
Дата:
Сообщение: Re: Improving compressibility of WAL files