NOW() and TIMESTAMP() commands are not accurate #364
-
Hi, If I run Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is not a DBeaver issue. It is how PostgreSQL works. pgadmin works in autocommit state by default so time differs on each execution. http://stackoverflow.com/questions/3363376/how-to-get-a-real-time-within-postgresql-transaction |
Beta Was this translation helpful? Give feedback.
-
Oddly, my connection is set to autocommit (which I confirmed with |
Beta Was this translation helpful? Give feedback.
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