Try running things as the postgres user.