| From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
|---|---|
| To: | "Subramanian,Ramachandran" <ramachandran(dot)subramanian(at)alte-leipziger(dot)de>, "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: AW: pg_upgrade Error- Kindly help |
| Date: | 2026-07-21 12:16:01 |
| Message-ID: | 654d4ab2d7d67a81fabb11741db820a623d3f15f.camel@cybertec.at |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
On Tue, 2026-07-21 at 10:51 +0000, Subramanian,Ramachandran wrote:
> Thank you so much for your reply. Our Linux Sysadmin says the upgrade package that he is
> executing does not create a new directory for V18. Rather it just replaces the existing
> files in our /bin library. Naturally /bin has executables that belong to various other
> products.(not just exclusively postgres)
I am only talking about PostgreSQL executables.
> 1. In such a situation is an inplace upgrade never possible? What if I copied the entire
> /bin directory to a /bin/V16 directory before our sysadmin does his thing and used this
> /bin/V16 in the pg_upgrade command
That's not enough. You also need the library directory, as indicated by the error message.
> 2. Forgive my ignorance, what does it mean when you say " it needs all the executables
> from V16 including the shared libraries" ? Does a V18 postgres need updated executables
> that do not belong specifically to postgres ? Like executables that operate at the
> OS level that are usually not seen by a DBA when we execute postgres commands?
No, I was talking about the library mentioned in the error message:
/usr/lib64/pgsql/pg_stat_statements.so
That is part of PostgreSQL.
> 3. Our sysadmin suggested we try " # postgresql-new-systemd-unit --unit postgresql(at)secondary
> --datadir /path/to/data/directory" "# postgresql-setup --upgrade --unit postgresql(at)secondary".
> I have no idea what it means. However I tried to use it and the process told me that
> there was a checksum problem between the V16 and V18. I tried to turn on the checksum for
> V16 with the pg_checksums command...and it failed again due to Library mismatch. Is it
> possible to do a inplace upgrade with this #postgresql -unit method even without old and
> new bin libraries?
I have no idea what that means either. It is not part of PostgreSQL.
The checksum error probably means that you need to use the --no-data-checksums option of
"initdb" to create the new cluster in v18.
> Now I have done the upgrade with pg_dumpall method. It works, but I really want to do an inplace upgrade.
Then your system administrators need to install PostgreSQL correctly.
Yours,
Laurenz Albe
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Quentin de Metz | 2026-07-26 20:44:31 | pg_dump not properly dumping unlogged partitioned tables |
| Previous Message | Subramanian,Ramachandran | 2026-07-21 10:51:09 | AW: pg_upgrade Error- Kindly help |