Re: IMMUTABLE and PARALLEL SAFE function markings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: IMMUTABLE and PARALLEL SAFE function markings
Дата
Msg-id 29466.1543278855@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: IMMUTABLE and PARALLEL SAFE function markings  (Vik Fearing <vik.fearing@2ndquadrant.com>)
Список pgsql-hackers
FWIW, I'm inclined to think that pg_config should be marked as stable
not immutable.  Aside from the minor-version-upgrade issue, what if
you install new binaries that are the same version but built with
different configure flags?

The pg_config outputs are roughly as stable as initdb-inserted
catalog data, and we've never judged that functions that return
catalog data can be marked immutable.

There seems no reason it can't be parallel safe, though, since
worker processes should get the same answers as their parent.

            regards, tom lane


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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: pg_config wrongly marked as not parallel safe?
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: IMMUTABLE and PARALLEL SAFE function markings