Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHvY8-0002E9-6c for pgsql-general@arkaria.postgresql.org; Wed, 31 Oct 2018 18:49:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHvY5-0006Vd-PR for pgsql-general@arkaria.postgresql.org; Wed, 31 Oct 2018 18:49:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHvY5-0006VW-Gv for pgsql-general@lists.postgresql.org; Wed, 31 Oct 2018 18:49:01 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHvY2-0008Sv-FY for pgsql-general@postgresql.org; Wed, 31 Oct 2018 18:49:00 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 3DE55992D4 for ; Wed, 31 Oct 2018 11:48:56 -0700 (PDT) Date: Wed, 31 Oct 2018 11:48:56 -0700 (PDT) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Broken postgres links need to find callers In-Reply-To: <87k1ly55pu.fsf@news-spur.riddles.org.uk> Message-ID: References: <87k1ly55pu.fsf@news-spur.riddles.org.uk> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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