Skip to content

NOW() and TIMESTAMP() commands are not accurate #364

Locked Answered by serge-rider
alexpetralia asked this question in Q&A
Discussion options

You must be logged in to vote

This is not a DBeaver issue. It is how PostgreSQL works.
now() or CURRENT_TIMESTAMP is the same as transaction_timestamp().
Time will change once you will commit or rollback active transaction.

pgadmin works in autocommit state by default so time differs on each execution.
You can switch to autocommit state in DBeaver or use clock_timestamp() function.

http://stackoverflow.com/questions/3363376/how-to-get-a-real-time-within-postgresql-transaction

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kseniiaguzeeva
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #364 on December 25, 2020 13:17.