Answer the question
In order to leave comments, you need to log in
How can I find out the last query completion time in PostgressSQL?
I have logging configured, can I use SELECT or some other way to find out the completion time of the last request and write it to a variable?
Answer the question
In order to leave comments, you need to log in
We use: SELECT * FROM pg_stat_activity
This table has a query_start column - it stores the time when a certain request was made
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question