A
A
Andrey Romanyuk2018-06-12 18:08:51
PostgreSQL
Andrey Romanyuk, 2018-06-12 18:08:51

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

1 answer(s)
A
Andrey Romanyuk, 2018-06-14
@BLek2

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 question

Ask a Question

731 491 924 answers to any question