tools/server-check: support distros with postgres ident authentication
tools/server-check: support distros with postgres ident authentication

In such distros, we have to run once as root, and once as the postgres
user, which can access the db, not any other file.

xrg/openerp-server,xrg/openerp-server