Re: BUG #17315: Postgresql needs reinstall after restore

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: markus(dot)weyermann(at)gmx(dot)net
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17315: Postgresql needs reinstall after restore
Date: 2021-12-05 16:10:29
Message-ID: 2814159.1638720629@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> After restore, when trying to start postgres by "systemctl start postgres"
> errors are logged:

> /usr/lib/postgresql/14/bin/postgres: error while loading shared libraries:
> libicui18n.so.63: cannot open shared object file: No such file or
> directory

I don't see any reason to call that a Postgres bug. Postgres certainly
did not remove that library --- even if it tried, it wouldn't have the
privileges to do so. My guess is that you (or some administrative
process) incorrectly uninstalled that version of libicui18n some time ago,
but the existing PG server kept running because it had an open handle to
the shared library file. After process shutdown, the kernel finished
removing the now-unreferenced library file, and then of course starting
PG up again would fail.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2021-12-06 01:53:45 Re: BUG #17268: Possible corruption in toast index after reindex index concurrently
Previous Message PG Bug reporting form 2021-12-04 22:19:52 BUG #17315: Postgresql needs reinstall after restore