Re: libpq 9.4 requires /etc/passwd?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christoph Berg <cb(at)df7cb(dot)de>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: libpq 9.4 requires /etc/passwd?
Date: 2015-01-09 23:42:19
Message-ID: 15876.1420846939@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christoph Berg <cb(at)df7cb(dot)de> writes:
> libpq wants the user home directory to find .pgpass and
> .pg_service.conf files, but apparently the behavior to require the
> existence of the passwd file (or nss equivalent) is new in 9.4.

There is demonstrably no direct reference to /etc/passwd in the PG code.
It's possible that we've added some new expectation that $HOME can be
identified, but a quick look through the code shows no such checks that
don't look like they've been there for some time.

Are the complainants doing anything that would result in SSL certificate
checking? More generally, it'd be useful to see an exact example of
what are the connection parameters and environment that result in a
failure.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-01-09 23:57:02 Re: libpq 9.4 requires /etc/passwd?
Previous Message Christoph Berg 2015-01-09 23:32:40 libpq 9.4 requires /etc/passwd?