Filtering in User Manager was broken in Postgres. Fixes #5436.