Audit Role Connections - Mailing list pgsql-general

From Chris Morris
Subject Audit Role Connections
Date
Msg-id CALrUc2UnY6Rup8-Q_ajOuJofX9OzPNjfX-ObEHjtgS-9gHg6hA@mail.gmail.com
Whole thread Raw
Responses Re: Audit Role Connections  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
List pgsql-general
We're using Heroku's PG, and it comes with a default, almost super-user. I'm wanting to restrict that account for only our production app servers, and have anyone connecting for personal queries to go through an assigned role by employee (that's all setup and working). 

Other than polling pg_stat_activity (which isn't 100% accurate depending on timing), is there a good way to audit connections? To detect which roles are being used for connections?

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_ctl can't start db server
Next
From: Adrian Klaver
Date:
Subject: Re: pg_ctl can't start db server