How clock_timestamp() Works in PostgreSQL

In PostgreSQL, clock_timestamp() is a non-SQL-standard time function that returns the current date and time.

An important consideration of this function is that its result changes throughout the execution of a statement. Therefore, you could get a different result in different parts of the statement if you call the function multiple times within a single statement.

Continue reading