feat(binder): support DEFAULT current_timestamp
for timestamp without time zone
#18513
Labels
Milestone
This issue acknowledges it is not supported, and why we may want to keep it unsupported.
The following works in PostgreSQL:
Similar behavior for MySQL datetime
That is, if you expect
current_timestamp
to grow monotonically, you should never store it in atimestamp without time zone
column! Usetimestamptz
instead.Furthermore, we can see that PostgreSQL follows the session timezone settings at the time of
INSERT
, rather than at the time ofCREATE TABLE
. However, RisingWave may continuously ingest rows in the background without an interactive user session, and streaming jobs already follow the timezone at the time ofcreate materialized view
. So even if we want to support such misuse for the sake of more comprehensive PostgreSQL-compatibility, it is either infeasible (INSERT
) or incompatible (CREATE
).The text was updated successfully, but these errors were encountered: