Re: BUG #14872: libpq requires a home directory

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: dcwatson(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14872: libpq requires a home directory
Date: 2017-10-25 22:10:36
Message-ID: 27255.1508969436@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I wrote:
> Poking around, it looks like parseServiceInfo's search for
> ~/.pg_service.conf has the same disease, but that code's been like that
> since 2010 --- I wonder why it's not causing you problems? Are you maybe
> setting PGSERVICEFILE to prevent that from failing?

Ah, looking closer, we don't reach that code unless you've specified a
service name (either as a connection parameter or through the PGSERVICE
environment variable). So it's not so surprising that nobody complained
about that case yet. But it's still wrong.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2017-10-25 22:35:17 Re: BUG #14872: libpq requires a home directory
Previous Message Tom Lane 2017-10-25 21:40:14 Re: BUG #14872: libpq requires a home directory