Re: to_timestamp function calculation error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: myzhen <zhenmingyang(at)yeah(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: to_timestamp function calculation error
Date: 2024-12-17 15:31:50
Message-ID: 2236659.1734449510@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

myzhen <zhenmingyang(at)yeah(dot)net> writes:
> When calling the to_timestamp function, if the actual parameter passed is a negative year and you specify BC, this will cause to_timestamp to return an AD date.

I believe this is intentional.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Evgeny Kuzin 2024-12-17 18:01:21 Is it possible to make ReorderBufferRestoreCleanup faster?
Previous Message myzhen 2024-12-17 11:51:44 to_timestamp function calculation error