1

I have an application which uses PostgreSQL. I want to monitor all the queries that the application sends to the database. Is there a way to monitor the queries sent?

1

1 Answer 1

0

You can point pgAdmin4 at your PostgreSQL server, it has a dashboard you can use. You can then drill down in a session to see the query.

If thats not what you are looking for then I guess a logging solution would be what you need like pg_stat_statements.

1
  • How would one log pg_stat_statements? I mean - if @Axel wants to monitor all queries, and was going to do that by logging pg_stat_statements, how would they do so such that all queries were captured?
    – baxx
    Mar 7, 2023 at 16:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.