Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ic9tJ-0000tb-Ll for pgsql-admin@arkaria.postgresql.org; Tue, 03 Dec 2019 15:15:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ic9tI-0002qM-Cl for pgsql-admin@arkaria.postgresql.org; Tue, 03 Dec 2019 15:15:04 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1ic9tI-0002qF-32 for pgsql-admin@lists.postgresql.org; Tue, 03 Dec 2019 15:15:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ic9tF-0004zR-C0 for pgsql-admin@lists.postgresql.org; Tue, 03 Dec 2019 15:15:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xB3FExBj032106; Tue, 3 Dec 2019 10:14:59 -0500 From: Tom Lane To: Ekaterina Amez cc: pgsql-admin@lists.postgresql.org Subject: Re: Should I care about this error "failed to link /usr/bin/psql [...] exists and it is not a symlink"? In-reply-to: <516a1fbf-2323-4278-86f0-e7e4886f73e5@zunibal.com> References: <516a1fbf-2323-4278-86f0-e7e4886f73e5@zunibal.com> Comments: In-reply-to Ekaterina Amez message dated "Tue, 03 Dec 2019 15:41:21 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32104.1575386099.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 03 Dec 2019 10:14:59 -0500 Message-ID: <32105.1575386099@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ekaterina Amez writes: > I'm installing postgres 9.6 in a CentOS 7 computer that already has = > postgres v9.2 installed (version that comes with CentOS installer) and = > I've seen the message of this mail's subject. > ... > failed to link /usr/bin/psql -> /etc/alternatives/pgsql-psql: /usr/bin/p= sql exists and it is not a symlink > ... I believe the issue here is that you've got Red Hat's postgresql packages installed, and they're not set up to participate in alternatives switching. I'd suggest removing those packages --- having them installed alongside PGDG postgres packages is going to lead to nothing but grief. regards, tom lane