Two time functions that freeze at different moments.

NOW and clock_timestamp differ by when they freeze

PostgreSQL offers several meanings of “current time.” A transaction timestamp identifies the beginning of a transaction, a statement timestamp identifies a command’s arrival, and a wall-clock reading samples the current clock during evaluation. Choosing among them changes the meaning of audit fields, expiration checks, and observations made during long-running work. ...

January 13, 2028 · 5 min · XB Field Notes