pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@postgresql.org
Subject: Re: Broken postgres links need to find callers
Date: Wed, 31 Oct 2018 12:02:51 -0700
Message-ID: <6553b4cb-9cae-8bca-97c3-54263448ad24@aklaver.com> (raw)
In-Reply-To: <alpine.LNX.2.20.1810311142570.26169@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.1810310925130.26169@salmo.appl-ecosys.com>
	<87k1ly55pu.fsf@news-spur.riddles.org.uk>
	<alpine.LNX.2.20.1810311142570.26169@salmo.appl-ecosys.com>

On 10/31/18 11:48 AM, Rich Shepard wrote:
> On Wed, 31 Oct 2018, Andrew Gierth wrote:
> 
>> Is there a pg_config binary in /usr/lib/postgresql/10.3/bin/ and if so,
>> what is the output of /usr/lib/postgresql/10.3/bin/pg_config --sharedir
> 
> Andrew,
> 
>    Yes, pg_config is present but pointing to the wrong directory:
> # /usr/lib/postgresql/10.3/bin/pg_config --sharedir
> /usr/share/postgresql-10.2

What does:

/usr/lib/postgresql/10.3/bin/pg_config --version

show?

What does:

ps ax | grep post

show?


> 
>    However, the file dates are that of the upgrade from 10.2 to 10.3:
> 
> -rwxr-xr-x 1 root root 7096448 Mar  1  2018 postgres*
> lrwxrwxrwx 1 root root       8 Mar  1  2018 postmaster -> postgres*
> -rwxr-xr-x 1 root root  514732 Mar  1  2018 psql*
> 
> and the postgres version is 10.3:
> 
>> Also what is the output of  /usr/lib/postgresql/10.3/bin/postgres -V
> 
> # /usr/lib/postgresql/10.3/bin/postgres -V
> postgres (PostgreSQL) 10.3
> 
>> The most plausible explanation I can see for what you're seeing there is
>> that what you have as /usr/lib/postgresql/10.3/bin/postgres is not
>> actually the 10.3 binary but rather the 10.2 one. There should be no
>> symlinks involved there - the path that is reported in the error message
>> is the one that the postgres binary actually did try to open.
> 
>    Can pg_config be corrected independent of anything else. That seems 
> to be
> where the blockage is found.
> 
> Thanks,
> 
> Rich
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (33+ messages)  latest in thread

Message-ID: <6553b4cb-9cae-8bca-97c3-54263448ad24@aklaver.com>
Permalink:  ../6553b4cb-9cae-8bca-97c3-54263448ad24@aklaver.com/
Also on:    postgresql.org/message-id/6553b4cb-9cae-8bca-97c3-54263448ad24@aklaver.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, rshepard@appl-ecosys.com
  Subject: Re: Broken postgres links need to find callers
  In-Reply-To: <6553b4cb-9cae-8bca-97c3-54263448ad24@aklaver.com>
  References: <alpine.LNX.2.20.1810310925130.26169@salmo.appl-ecosys.com> <87k1ly55pu.fsf@news-spur.riddles.org.uk> <alpine.LNX.2.20.1810311142570.26169@salmo.appl-ecosys.com> <6553b4cb-9cae-8bca-97c3-54263448ad24@aklaver.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