
How-ToTools
Debugging postgres: List all connections
via Dev.toStefan Ukena
Sometimes want a list of all connections to your postgres database. Postgres maintains this list in an internal datastructure that you simply query like this: SELECT * FROM pg_stat_activity; This will give you something like this (I have removed many columns to make it more readable here): state application_name client_addr wait_event NULL NULL AutoVacuumMain NULL NULL LogicalLauncherMain idle test.
Continue reading on Dev.to
Opens in a new tab
26 views


