ISTM the problem described here is a failure on PgBouncer's part: it isfailing to maintain the illusion of a separate connection per user.I don't know that much about PgBouncer, but perhaps you just haveit configured wrong?
regards, tom lane