Re: why pg_size_pretty is volatile? - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: why pg_size_pretty is volatile?
Date
Msg-id CAHGQGwFPsF4BP4DD5YWKmqeH_EjffVvZ4FgZwW_uHx-=y2KTbA@mail.gmail.com
Whole thread Raw
In response to Re: why pg_size_pretty is volatile?  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
On Tue, Jan 26, 2016 at 3:00 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
>
>
> 2016-01-26 2:00 GMT+01:00 Michael Paquier <michael.paquier@gmail.com>:
>>
>> 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.
>
>
> attached patch
>
> all tests passed

Pushed. Thanks!

Regards,

-- 
Fujii Masao



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: pgbench stats per script & other stuff
Next
From: leo
Date:
Subject: Does pglogical support PG 9.4.5?