Re: Wrong provolatile value for to_timestamp (1 argument) - Mailing list pgsql-hackers

From Laurenz Albe
Subject Re: Wrong provolatile value for to_timestamp (1 argument)
Date
Msg-id a8257d0918c69de24f4c87a1e9637c32c8cc602e.camel@cybertec.at
Whole thread Raw
In response to Wrong provolatile value for to_timestamp (1 argument)  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Responses Re: Wrong provolatile value for to_timestamp (1 argument)
List pgsql-hackers
On Tue, 2022-07-05 at 17:29 +0900, Tatsuo Ishii wrote:
> I found that provolatile attribute of to_timestamp in pg_proc is
> wrong:
> 
> test=# select provolatile, proargtypes from pg_proc where proname = 'to_timestamp' and proargtypes[0] = 701;
>  provolatile | proargtypes 
> -------------+-------------
>  i           | 701
> (1 row)
> 
> 'i' (immutable) is clearly wrong s

Are you sure?  I'd say that "to_timestamp(double precision)" always
produces the same timestamp for the same argument.  What changes with
the setting of "timezone" is how that timestamp is converted to a
string, but that's a different affair.

Yours,
Laurenz Albe



pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: logical replication restrictions
Next
From: John Naylor
Date:
Subject: Re: [PoC] Improve dead tuple storage for lazy vacuum