Re: gen_random_uuid() is immutable in Pg 13devel

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: gen_random_uuid() is immutable in Pg 13devel
Дата
Msg-id 20200218200122.GA7247@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: gen_random_uuid() is immutable in Pg 13devel  (Peter Geoghegan <pg@bowt.ie>)
Ответы Re: gen_random_uuid() is immutable in Pg 13devel  (Peter Geoghegan <pg@bowt.ie>)
Re: gen_random_uuid() is immutable in Pg 13devel  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On 2020-Feb-18, Peter Geoghegan wrote:

> On Tue, Feb 18, 2020 at 11:01 AM Alvaro Herrera
> <alvherre@2ndquadrant.com> wrote:
> > > It looks that commit 5925e5549890416bcf588334d9d0bc99f8ad6c7f forgot to
> > > mark the function as volatile. Not sure if it was intentional.
> >
> > It seems an oversight to me.
> 
> Maybe this happened because the default volatility for pg_proc.dat
> entries is not 'volatile' -- it's 'immutable'.

That makes me wonder what should be the default --- and should there
even *be* a default in the first place?  Maybe it's better to make
everyone *think* about it every time rather than hoping we'll all
remember, and frequently having it got wrong.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: gen_random_uuid() is immutable in Pg 13devel
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: gen_random_uuid() is immutable in Pg 13devel