Re: Wrong provolatile value for to_timestamp (1 argument)
| От | Laurenz Albe |
|---|---|
| Тема | Re: Wrong provolatile value for to_timestamp (1 argument) |
| Дата | |
| Msg-id | a8257d0918c69de24f4c87a1e9637c32c8cc602e.camel@cybertec.at обсуждение исходный текст |
| Ответ на | Wrong provolatile value for to_timestamp (1 argument) (Tatsuo Ishii <ishii@sraoss.co.jp>) |
| Ответы |
Re: Wrong provolatile value for to_timestamp (1 argument)
|
| Список | 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 по дате отправления: