From: | Don Seiler <don(at)seiler(dot)us> |
---|---|
To: | Devrim Gündüz <devrim(at)gunduz(dot)org> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-admin <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: psql can't connect to old DB after installing new binaries |
Date: | 2017-10-05 14:56:49 |
Message-ID: | CAHJZqBCHPrDWhDmhZRpV4iD=1cFbcYLfhjDxVUOXqWTbie7TQg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Wed, Oct 4, 2017 at 4:32 PM, Devrim Gündüz <devrim(at)gunduz(dot)org> wrote:
>
>
> There is a file under /etc/ld.so.conf.d directory, which does this magic.
>
Yes I can see this in action now. Before installing 9.6:
# cat /etc/ld.so.conf.d/postgresql-pgdg-libs.conf
/usr/pgsql-9.2/lib/
After installing 9.6 (just installing the RPMs, no init or config):
# cat /etc/ld.so.conf.d/postgresql-pgdg-libs.conf
/usr/pgsql-9.6/lib/
Very good to know, thanks.
What happens when you use 9.2's psql?
>
> /usr/pgsql-9.2/bin/psql
As David shared, I got the same socket file error when directly using that
binary file, and ldd shows that it is linked to the 9.6 libpq.so.5 file.
Thanks,
Don.
--
Don Seiler
www.seiler.us
From | Date | Subject | |
---|---|---|---|
Next Message | Ponnam, Bhavani | 2017-10-05 19:43:10 | start/restart PostgreSQL service with SSL enabled |
Previous Message | Simon Major | 2017-10-05 14:53:57 | Additional checks for orphaned files |