I just want to ask how can I apply grants on active connection ? Currently I'm trying to revoke access to a user for a specific database on active connection and it doesn't work. For exemple if I revoke all privileges to fooUser on database foo, if the user already have some active connections he would still be able to insert/update/select on the database until he makes a new connection... I thought revoking all privileges would kill active connections but it seems like not.
I expect that if I revoke access to a user connected and or using a specific database he should be "ejected" somehow but it doesn't.