I need to add users to pgbouncer dynamically when users are created in postgres.
Is it advisable to use triggers to invoke shell script which add entry in userslist.txt of pgbouncer on pg_catalog.authid insertion event or call shell scrip directly from application.
I don't find any support in pgbouncer for dynamic addition of user & db details to pgbouncer configuration.