Re: auto-sizing wal_buffers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: auto-sizing wal_buffers
Дата
Msg-id 508.1295749488@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: auto-sizing wal_buffers  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: auto-sizing wal_buffers  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> I'm going with hacks.  Any API that requires you to print to a string
> so you can turn around and immediately convert it back to an integer
> is not too swift.

Oh, you're complaining about SetConfigOption, not the assign hooks.

Not sure if it's really worth refactoring that.  The problem is that
there are lots and lots and lots of places that need to call that
*without* any dependency on what the datatype of the target GUC option
really is.  There are a small number where we do know the type and
conversion to a string is just overhead.  If any of those were
performance-critical it might be worth worrying about, but this one
certainly isn't.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Transaction-scope advisory locks
Следующее
От: Robert Haas
Дата:
Сообщение: Re: auto-sizing wal_buffers