Re: auto-sizing wal_buffers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: auto-sizing wal_buffers
Дата
Msg-id 1334.1295752336@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: auto-sizing wal_buffers  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Sat, Jan 22, 2011 at 9:42 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> It does strike me that we could provide SetConfigOptionInt,
>> SetConfigOptionBool, and SetConfigOptionReal for the benefit of callers
>> who'd prefer to pass values in those formats. �They'd still do sprintf
>> internally, but this would make the call sites a bit cleaner.

> Why do we need to double the conversion in the first place?

Because most of the processing in set_config_option is independent of
the type of the GUC variable.  Maybe it could be refactored, but I don't
think it would come out prettier, nor faster.  Again, the important code
paths are starting from string values anyway --- I don't think we should
contort the design of guc.c to serve a small minority of callers at the
expense of complicating the normal cases.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Bug in pg_describe_object, patch v2
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug in pg_describe_object, patch v2