pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: abbas alizadeh <ramkly@yahoo.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Murali Paramu <ipmurali@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: could not connect via psql to 9.4 version
Date: Fri, 14 Feb 2020 19:22:17 +0800
Message-ID: <C2947FC7-53C7-496D-8A19-C6A343CDFB78@yahoo.com> (raw)
In-Reply-To: <CAMkU=1wwn0bLcXVhWcaPLr8=ZecQwY1yK8i0h419r7vn7b_+YQ@mail.gmail.com>
References: <CAMkU=1wwn0bLcXVhWcaPLr8=ZecQwY1yK8i0h419r7vn7b_+YQ@mail.gmail.com>

Hi.
You should use the right psql for version 9.4.
In linux run “which psql” to see which version is used to connect

Sent from my iPhone

> On Feb 14, 2020, at 01:11, Jeff Janes <jeff.janes@gmail.com> wrote:
> 
> 
>> On Thu, Feb 13, 2020 at 11:23 AM Murali Paramu <ipmurali@gmail.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 5432
>> psql: 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 

view thread (7+ messages)  latest in thread

Message-ID: <C2947FC7-53C7-496D-8A19-C6A343CDFB78@yahoo.com>
Permalink:  ../C2947FC7-53C7-496D-8A19-C6A343CDFB78@yahoo.com/
Also on:    postgresql.org/message-id/C2947FC7-53C7-496D-8A19-C6A343CDFB78@yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ramkly@yahoo.com, jeff.janes@gmail.com, ipmurali@gmail.com
  Subject: Re: could not connect via psql to 9.4 version
  In-Reply-To: <C2947FC7-53C7-496D-8A19-C6A343CDFB78@yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox