I
I
itsgrigorij2018-10-12 19:20:54
PostgreSQL
itsgrigorij, 2018-10-12 19:20:54

Catching a postgresql query?

There is a software which yuzat a database. There is pgadmin. How to catch a request to the database from the software in order to understand which table is being accessed?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
ky0, 2018-10-12
@ky0

in postgres settings log_statement = 'all'. After that, all requests will be written to the standard log.

D
Dmitry Shitskov, 2018-10-12
@Zarom

Via pgaudit

D
Dimonchik, 2018-10-12
@dimonchik2013

pgtop

O
Oleg Petrov, 2018-10-16
@Smeilz1

SELECT * FROM pg_stat_activity;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question