Re: BUG #16553: now() function marked PARALLEL RESTRICTED whereas transaction_timestamp() is PARALLEL SAFE - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16553: now() function marked PARALLEL RESTRICTED whereas transaction_timestamp() is PARALLEL SAFE
Date
Msg-id 196706.1595516359@sss.pgh.pa.us
Whole thread Raw
In response to BUG #16553: now() function marked PARALLEL RESTRICTED whereas transaction_timestamp() is PARALLEL SAFE  (PG Bug reporting form <noreply@postgresql.org>)
List 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 by date:

Previous
From: Michał Lis
Date:
Subject: Re: BUG #16550: Problem with pg_service.conf
Next
From: "David G. Johnston"
Date:
Subject: Re: BUG #16550: Problem with pg_service.conf