Re: : Getting error while starting the server - Mailing list pgsql-general

From Raghavendra
Subject Re: : Getting error while starting the server
Date
Msg-id CA+h6AhgsQVMUPi=eTUkQ6id=Hz8pnosKoviSB0Dp890pgBQe4Q@mail.gmail.com
Whole thread Raw
In response to : Getting error while starting the server  (VENKTESH GUTTEDAR <venkteshguttedar@gmail.com>)
List pgsql-general

    return Database.connect(**conn_params)
  File "/usr/local/lib/python3.4/dist-packages/psycopg2/__init__.py", line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: could not translate host name "localhost" to address: Name or service not known

 
​I guess problem with your server name resolution. ​Its worth checking as said, using psql -h localhost or ping localhost. 

---
Regards,
Raghavendra
EnterpriseDB Corporation

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: rollback in function
Next
From: amihay gonen
Date:
Subject: Fwd: : Getting error while starting the server