Re: why pg_size_pretty is volatile?

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: why pg_size_pretty is volatile?
Дата
Msg-id CAB7nPqRgNH85o4wqSx826ojynvVaLBWyQKxpiQALhMEQZQwTKw@mail.gmail.com
обсуждение исходный текст
Ответ на why pg_size_pretty is volatile?  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: why pg_size_pretty is volatile?  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
On Tue, Jan 26, 2016 at 5:35 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Vitaly Burovoy pointed on bug in my patch - a pg_size_bytes was VOLATILE
> function. It is copy/paste bug - I used pg_size_pretty definition, so the
> question is: why pg_size_pretty is volatile? It should be immutable too.

+1. This function relies only on the input of its argument to generate a result.
-- 
Michael



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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: [PROPOSAL] VACUUM Progress Checker.
Следующее
От: Kouhei Kaigai
Дата:
Сообщение: Re: CustomScan in a larger structure (RE: CustomScan support on readfuncs.c)