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 1gHvla-0002tX-S7 for pgsql-general@arkaria.postgresql.org; Wed, 31 Oct 2018 19:02:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHvlY-0002uf-7K for pgsql-general@arkaria.postgresql.org; Wed, 31 Oct 2018 19:02:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHvlX-0002uX-S4 for pgsql-general@lists.postgresql.org; Wed, 31 Oct 2018 19:02:56 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHvlV-0006rP-E8 for pgsql-general@postgresql.org; Wed, 31 Oct 2018 19:02:54 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C175A22189; Wed, 31 Oct 2018 15:02:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 31 Oct 2018 15:02:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=M OlApkHExj0QUUQvFr/kv6Hx4xG2k+CKPv4RNhXmOCQ=; b=ntgnytE8mD0sDTfhr 1R2yT9zRHSdyjc3F0vspLyaq2ERUios5aTL+Ts9dFIogEGjrEu/Brq7S/EFltlLa 9NXOsXxQG57huvjxZfC5hkdDlOHGZBjRxHMf3bSibUw97tPwo96DoaXBcFQlVV99 3A/3sVOokdwO7cExwMkFj4i0Tu798lpuFVRnxT/sc/6RX5UJB72W2BoPzaeRTKmk E7B90Hbsusu7sLPXrW3wRdrZOPiXAJMcykgyom0RyATtrW+G4hBt8RsqBR4rgdN+ SiooMeLkeUneSSwhHXiJP9hGRDrTZKa87Fc8nYd7aF8vywqzPiw8oKQJvHd7ai6s 3Fzyg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=MOlApkHExj0QUUQvFr/kv6Hx4xG2k+CKPv4RNhXmO CQ=; b=aRJpD5/21U+omXwBZTLLQDAYCxdCK70p4+jn4BLqGOfR/Hsc92cZmsopr dh7tDY2E9amePnwtFG2deb0i2yvrr1kT+iJ1dJM1nGx9dTNZBUq7l11PIxGMw9zA mH5pw80UXG+t28wwJ4VgZjU5CnDfw+4E1HAubDXK/WwtVfYX+m4ZnZkBtWdZGAEo 6f5X1j6WX0BvsOeCWSsToU06fekhjrlODxY9oHHRWWcssG7Ha/rI5XtropB67GDB HcpNQi0XRObppSltQr0+i6Rm1f0w5O7ISewbO8/3/aZRGXQaBJQEsgD0dWKy5mkN 1VAjz+iGZw3/Wi2lnXBpMPhCnDsEA== X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id C5EF2102EA; Wed, 31 Oct 2018 15:02:51 -0400 (EDT) Subject: Re: Broken postgres links need to find callers To: Rich Shepard , pgsql-general@postgresql.org References: <87k1ly55pu.fsf@news-spur.riddles.org.uk> From: Adrian Klaver Message-ID: <6553b4cb-9cae-8bca-97c3-54263448ad24@aklaver.com> Date: Wed, 31 Oct 2018 12:02:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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