2 ms·
There's no need to create a new connection per role. Simply use `SET ROLE`/`RESET ROLE`. https://www.postgresql.org/docs/15/sql-set-role.html https://www.post
by paulddraper 4y ago
There's no need to create a new connection per role.
Simply use `SET ROLE`/`RESET ROLE`.
https://www.postgresql.org/docs/15/sql-set-role.html https://www.postgresql.org/docs/15/sql-set-role.html
- yencabulator 4y agoIt does seem like that adds two round trips (SET ROLE, RESET ROLE) to each database interaction, though.