On Tue, Feb 15, 2022 at 04:05:44PM +0100, julian.garcia@inrop.es wrote:
> root@myserver ~ # sudo su - postgres
> postgres@myserver ~ $ which psql
> /usr/bin/psql
> postgres@myserver ~ $ ls -l "$( which psql )" "$( readlink -f "$( which psql
> )" )"
> lrwxrwxrwx 1 root root 28 Feb 15 11:25 /usr/bin/psql ->
> /etc/alternatives/pgsql-psql
> -rwxr-xr-x 1 root root 632176 Feb 9 15:21 /usr/pgsql-12/bin/psql
> postgres@myserver ~ $ rpm -qf "$( which psql )"
> file /usr/bin/psql is not owned by any package
> postgres@myserver ~ $ rpm -qf "$( readlink -f "$( which psql )" )"
> postgresql12-12.10-1PGDG.rhel6.x86_64
This does look wrong, and if someone on clean install can confirm it
would be good to track down and fix.
I'd guess it's some issue with packaging, but how it happened - no idea,
sorry.
Best regards,
depesz