logoalt Hacker News

groundzeros2015today at 3:30 PM3 repliesview on HN

Lately I been questioning whether it’s actually a good idea to pool connections. Don’t your in the risk of leaking privileges or information from other requests?


Replies

hans_castorptoday at 3:54 PM

Typically no.

In most (all?) cases the pooler manages one pool per database user, so even if there was something leaking, it would not be anything that the database user couldn't access anyway.

But if you are paranoid, you can configure the pooler to run "RESET ALL", "RESET ROLE", "RESET SESSION AUTHORIZATION" and "ROLLBACK" before handing out a connection.

nomeltoday at 3:40 PM

The cursor is not shared.

show 1 reply