Re: BUG #16553: now() function marked PARALLEL RESTRICTED whereas transaction_timestamp() is PARALLEL SAFE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #16553: now() function marked PARALLEL RESTRICTED whereas transaction_timestamp() is PARALLEL SAFE
Дата
Msg-id 196706.1595516359@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #16553: now() function marked PARALLEL RESTRICTED whereas transaction_timestamp() is PARALLEL SAFE  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> now() and transaction_timestamp() are described as being equivalent in the
> guide
> https://www.postgresql.org/docs/11/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT.
> However, using now() in a query can screw up a possible parallel plan since
> it's labeled PARALLEL RESTRICTED.

This is fixed in v12 and later, cf

https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=07ee62ce9

            regards, tom lane



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

Предыдущее
От: Michał Lis
Дата:
Сообщение: Re: BUG #16550: Problem with pg_service.conf
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: BUG #16550: Problem with pg_service.conf