Earliest Timestamp supported in PostgreSQL

前端 未结 2 1388
时光取名叫无心
时光取名叫无心 2021-02-18 18:43

I work with different databases in a number of different time zones (and periods of time) and one thing that normally originates problems, is the date/time definition.

F

2条回答
  •  无人及你
    2021-02-18 19:48

    The earliest timestamp is '-infinity'. This is a special value. The other side is 'infinity' which is later than any specific timestamp.

    I don't know of a way of getting this programaticly. I would just use the value hard-coded the way you might use NULL. That means you have to handle infinities on the client side though.

提交回复
热议问题