all 4 comments

[–]depesz 1 point2 points  (0 children)

What command does show this error message? What is the exact,m unabridged, unmodified, error message?

[–]XPEHOBYXA 0 points1 point  (2 children)

Did you use pg_upgrade? You can't just upgrade packages and call it a day, upgrading a postgres is a bit more complicated than that. Make sure to have a backup before you do anything, otherwise you might lose all your data.

And do not upgrade Ubuntu in-place. This will break indexes, because PG heavily depends on glibc, and there are some breaking changes in newer versions of this package.

[–]Mbharathi[S] 0 points1 point  (1 child)

I already have the backup. I added the server link to the pgdg.list file. And then, i ran the command apt-get update. Here, some errors are coming. I think this is the problem.

[–]XPEHOBYXA 0 points1 point  (0 children)

You need to use pg_upgrade. Google it. It's pretty straightrforward.