Skip to content

Instantly share code, notes, and snippets.

@aont
Created May 1, 2025 03:11
Show Gist options
  • Save aont/5fa907bc68c8362db9235f345d3f07a5 to your computer and use it in GitHub Desktop.
Save aont/5fa907bc68c8362db9235f345d3f07a5 to your computer and use it in GitHub Desktop.

check postgres access

SELECT pid, application_name, state, backend_start FROM pg_stat_activity WHERE pid <> pg_backend_pid();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment