Re: could not connect via psql to 9.4 version

From: zurich(at)nym(dot)hush(dot)com
To: "Murali Paramu" <ipmurali(at)gmail(dot)com>
Cc: "pgsql-admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: could not connect via psql to 9.4 version
Date: 2020-02-13 17:24:10
Message-ID: 20200213172411.0BB2F20118@smtp.hushmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Have you checked the local settings in the pg_hba.conf as this will affect permitted access.

You can compare what is set differently between the different versions of postgreSQL.

Cheers

Peter

On 2/13/2020 at 5:11 PM, "Jeff Janes" <jeff(dot)janes(at)gmail(dot)com> wrote:
>
>On Thu, Feb 13, 2020 at 11:23 AM Murali Paramu
><ipmurali(at)gmail(dot)com> wrote:
>
>> Hello Team,
>> I have two versions of PostgreSQL 9.4 and 12.1
>> both servers can be connected through pgAdmin.
>> But through psql I can connect only to 12.1
>>
>> when i connect to 9.4 got below error:
>>
>>
>>
>>
>> *$ psql -U postgres -p 5432psql: error: could not connect to
>server: could
>> not connect to server: No such file or directory Is the server
>running
>> locally and accepting connections on Unix domain socket
>> "/var/run/postgresql/.s.PGSQL.5432"?*
>>
>>
>Perhaps 9.4 is configured to put its socket file in /tmp instead of
>/var/run/postgresql/. You can try -h /tmp, or you can just always
>use -h
>127.0.0.1, then you don't need to worry where the socket file is.
>
>Cheers,
>
>Jeff

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jacque 2020-02-13 21:46:16 creative work-arounds to obtain auto_explain's benefits for non-superuser
Previous Message Jeff Janes 2020-02-13 17:10:47 Re: could not connect via psql to 9.4 version