On Fri, Oct 9, 2015 at 10:16 PM, Noah Misch <n...@leadboat.com> wrote:
> On Fri, Oct 09, 2015 at 03:14:26PM -0400, Robert Haas wrote:
>> On Thu, Oct 8, 2015 at 11:26 PM, Noah Misch <n...@leadboat.com> wrote:
>> >> In particular, magically
>> >> substituting for seems utterly without principle.
>> >
>> > Binding a listening socket to "" listens on every local IPv4 
>> > address,
>> > and is one of those addresses.  That's the principle.  It's
>> > inelegant, but I expect it to work everywhere.
>> But... what about the machine's other addresses?
>> If Windows doesn't treat to mean listen on every interface,
>> that's a shame.  But making it only listen on and not any of
>> the others does not seem better.  Then, instead of failing on
>> Windows, it would instead work but with different behavior.  That
>> doesn't seem good either.
> The listening side is in good shape today.  This thread is about the address
> that pg_ctl uses in PQping("host=...").  Listening on is portable.
> PQping("host=''") relies on non-portable semantics in the underlying
> connect() syscall.  PQping("host=''") is a portable substitute.

Ah.  So in this case is interpreted to mean "any IP that's a
way to reach the local host", and using makes sense because
we know that will always be one of them?  I could buy that line of

Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:

Reply via email to