Re: Interesting case of IMMUTABLE significantly hurting performance

Поиск
Список
Период
Сортировка
Искать
От
Adrian Klaver
Тема
Re: Interesting case of IMMUTABLE significantly hurting performance
Дата
Msg-id
9e81428b-fb4c-4d72-9117-f18d262ead8c@aklaver.com
Ответ на
Список
Дерево обсуждения
Interesting case of IMMUTABLE significantly hurting performance Olleg Samoylov <splarv@ya.ru>
Re: Interesting case of IMMUTABLE significantly hurting performance Laurenz Albe <laurenz.albe@cybertec.at>
Re: Interesting case of IMMUTABLE significantly hurting performance "David G. Johnston" <david.g.johnston@gmail.com>
Re: Interesting case of IMMUTABLE significantly hurting performance Tom Lane <tgl@sss.pgh.pa.us>
Re: Interesting case of IMMUTABLE significantly hurting performance Olleg Samoylov <splarv@ya.ru>
Re: Interesting case of IMMUTABLE significantly hurting performance Adrian Klaver <adrian.klaver@aklaver.com>
Re: Interesting case of IMMUTABLE significantly hurting performance "David G. Johnston" <david.g.johnston@gmail.com>
Re: Interesting case of IMMUTABLE significantly hurting performance Wolfgang Walther <walther@technowledgy.de>
Re: Interesting case of IMMUTABLE significantly hurting performance Nico Williams <nico@cryptonector.com>
Re: Interesting case of IMMUTABLE significantly hurting performance Adrian Klaver <adrian.klaver@aklaver.com>
Re: Interesting case of IMMUTABLE significantly hurting performance Nico Williams <nico@cryptonector.com>
Re: Interesting case of IMMUTABLE significantly hurting performance Adrian Klaver <adrian.klaver@aklaver.com>
Re: Interesting case of IMMUTABLE significantly hurting performance "David G. Johnston" <david.g.johnston@gmail.com>
Re: Interesting case of IMMUTABLE significantly hurting performance Merlin Moncure <mmoncure@gmail.com>
Re: Interesting case of IMMUTABLE significantly hurting performance Tom Lane <tgl@sss.pgh.pa.us>
Re: Interesting case of IMMUTABLE significantly hurting performance Dominique Devienne <ddevienne@gmail.com>
Re: Interesting case of IMMUTABLE significantly hurting performance Merlin Moncure <mmoncure@gmail.com>
Re: Interesting case of IMMUTABLE significantly hurting performance "David G. Johnston" <david.g.johnston@gmail.com>
Re: Interesting case of IMMUTABLE significantly hurting performance Laurenz Albe <laurenz.albe@cybertec.at>
Re: Interesting case of IMMUTABLE significantly hurting performance Nico Williams <nico@cryptonector.com>
On 4/10/25 08:48, Nico Williams wrote:
> On Wed, Apr 09, 2025 at 02:43:11PM -0700, Adrian Klaver wrote:
>> On 4/9/25 14:21, Nico Williams wrote:
>>> That to_char is not immutable is not documented though.  Though it's
>>> clear when looking at the docs for the `jsonb_.*_tz()` functions.
>>
>>  From here:
>>
>> https://www.postgresql.org/docs/current/catalog-pg-proc.html
>>
>> select proname, provolatile, prosrc  from pg_proc where proname='to_char';
>> [...]
> 
> I'm surprised to see that counted as docs, but good to know.

When in doubt consult the system catalogs.

My guess is the absence of specific volatility information in the data 
formatting functions is due to that information originating from a time 
before provolatile existed. Whereas the jsonb_.*_tz() functions are 
relatively new and where documented with knowledge of provolatile.


-- 
Adrian Klaver
adrian.klaver@aklaver.com



В списке pgsql-general по дате отправления
От: David G. Johnston
Дата:
От: Tom Lane
Дата:
FAQ