Re: IMMUTABLE and PARALLEL SAFE function markings

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: IMMUTABLE and PARALLEL SAFE function markings
Дата
Msg-id CA+TgmobeRXnG3bjczOfKhNbjdsFk0M9iX+ePOZT1Jd1gmXdSMQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: IMMUTABLE and PARALLEL SAFE function markings  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Ответы Re: IMMUTABLE and PARALLEL SAFE function markings  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Re: IMMUTABLE and PARALLEL SAFE function markings  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Nov 26, 2018 at 8:49 PM Andrew Gierth
<andrew@tao11.riddles.org.uk> wrote:
> I'm a bit more concerned by the fact that inlining the function isn't
> affecting the parallel safety of the query - the fact that parallel
> safety is being checked prior to inlining means that if inlining
> *introduces* a parallel hazard, it will go unnoticed?

If a function is marked parallel-safe but internally calls
parallel-restricted or parallel-unsafe functions, it wasn't really
parallel-safe in the first place.  So I think that if inlining
introduces a parallel hazard, the user has mislabeled some functions
and any resulting injury is self-inflicted.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: IMMUTABLE and PARALLEL SAFE function markings
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Remove Deprecated Exclusive Backup Mode