remapped localhost causes connections to localhost to fail using Postgres - Mailing list pgsql-hackers

From Dann Corbit
Subject remapped localhost causes connections to localhost to fail using Postgres
Date
Msg-id 87F42982BF2B434F831FCEF4C45FC33EA52E5864@EXCHANGE.corporate.connx.com
Whole thread Raw
Responses Re: remapped localhost causes connections to localhost to fail using Postgres
List pgsql-hackers

Using a Windows computer, editing the file:

C:\WINDOWS\system32\drivers\etc\hosts

the localhost entry was remapped to the machine name by adding the following line:

127.0.0.1       <Computer-Name>

 

After this change, Postgres would not allow access using the address localhost.

Only using the machine name to access the database was possible.

Is this by design?

 

In other words

psql -h localhost

fails, but:

psql -h <Computer-Name>

succeeds.

 

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Support of partial decompression for datums
Next
From: Bill Moran
Date:
Subject: Re: remapped localhost causes connections to localhost to fail using Postgres