On Tue, Feb 15, 2022 at 11:07:14AM +0000, PG Bug reporting form wrote:
> I've upgraded my Postgres version from 12.9 to 12.10 following the
> documentation steps:
>
> service postgresql-12 stop
> yum update postgresql12-server
> service postgresql-12 start
>
> And the binaries do in fact show the upgraded version, the DB starts good,
> everything went well:
>
> postgres@dgojmysql01pre ~ $ rpm -qa | grep postgres
> postgresql12-libs-12.10-1PGDG.rhel6.x86_64
> postgresql12-server-12.10-1PGDG.rhel6.x86_64
> postgresql12-12.10-1PGDG.rhel6.x86_64
>
> But, when using the psql it would still show the 12.9 version:
>
> root@myserver ~ # sudo su - postgres
> postgres@myserver ~ $ psql
> psql (12.9)
> Type "help" for help.
Please do:
sudo su - postgres
which psql
ls -l "$( which psql )" "$( readlink -f "$( which psql )" )"
rpm -qf "$( which psql )"
rpm -qf "$( readlink -f "$( which psql )" )"
and please share results of the which, ls, and rpm calls.
Best regards,
depesz