pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ekaterina Amez <ekaterina.amez@zunibal.com>
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"?
Date: Tue, 03 Dec 2019 10:14:59 -0500
Message-ID: <32105.1575386099@sss.pgh.pa.us> (raw)
In-Reply-To: <516a1fbf-2323-4278-86f0-e7e4886f73e5@zunibal.com>
References: <516a1fbf-2323-4278-86f0-e7e4886f73e5@zunibal.com>

Ekaterina Amez <ekaterina.amez@zunibal.com> 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/psql 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





view thread (6+ messages)  latest in thread

Message-ID: <32105.1575386099@sss.pgh.pa.us>
Permalink:  ../32105.1575386099@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32105.1575386099@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ekaterina.amez@zunibal.com, 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: <32105.1575386099@sss.pgh.pa.us>

* 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