From: Devrim Gündüz <devrim@gunduz.org>
To: Don Seiler <don@seiler.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: psql can't connect to old DB after installing new binaries
Date: Wed, 04 Oct 2017 22:32:55 +0100
Message-ID: <1507152775.3791.53.camel@gunduz.org> (raw)
In-Reply-To: <CAHJZqBASFrrTXkiF=6RrS5SUaD4zYKGGAOF_3NRnLFrp-rMpAw@mail.gmail.com>
References: <CAHJZqBDBMzeeXRg8+PfkDN1avQM=DDZp90gDw9pUGK=pVUmYmA@mail.gmail.com>
<21116.1507147420@sss.pgh.pa.us>
<CAHJZqBASFrrTXkiF=6RrS5SUaD4zYKGGAOF_3NRnLFrp-rMpAw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Hi,
On Wed, 2017-10-04 at 15:36 -0500, Don Seiler wrote:
>
> It's pointing to the newly installed version instead of the version it the
> 9.2 lib directory. There isn't any such file under /usr/lib64. So how is it
> even aware of that /usr/pgsql-9.6 version?
There is a file under /etc/ld.so.conf.d directory, which does this magic.
>
> Yep that sounds good for later, although can't really help me in this case.
> I guess I can set unix_socket_directory in 9.2 to use the new location but
> that requires a restart anyway, not ideal.
>
> Would creating a symlink be a workaround? Would that cause issues with
> server restarts?
>
> Mind that this is only to prepare for the upgrade. We aren't planning to
> run both 9.2 and 9.6, and eventually 9.2 would be removed.
What happens when you use 9.2's psql?
/usr/pgsql-9.2/bin/psql
Regards,
--
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: devrim@gunduz.org, don@seiler.us, tgl@sss.pgh.pa.us
Subject: Re: psql can't connect to old DB after installing new binaries
In-Reply-To: <1507152775.3791.53.camel@gunduz.org>
* 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