pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: a.h.s.phani@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16568: pg_upgrade failed from 9.3 to 9.6
Date: Sun, 02 Aug 2020 17:11:06 -0400
Message-ID: <2225132.1596402666@sss.pgh.pa.us> (raw)
In-Reply-To: <16568-4124a9e4eef370ce@postgresql.org>
References: <16568-4124a9e4eef370ce@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
>     I am trying to upgrade PG 9.3.4 (repmgr 3.0.1) to PG 9.6.18 (repmgr 4.4)
> . On using pg_upgrade getting below error. 

> $ cat loadable_libraries.txt
> could not load library "$libdir/repmgr_funcs":
> ERROR:  could not access file "$libdir/repmgr_funcs": No such file or
> directory

> $ pg_config --pkglibdir
> /usr/local/pgsql/lib
> $ ll /usr/local/pgsql/lib/repmgr_funcs.so
> -rwxrwxrwx. 1 root root 10220 Mar 27  2018
> /usr/local/pgsql/lib/repmgr_funcs.so

First, are you sure you are interrogating the new installation's
pg_config rather than the old one's?  (If they are both pointing at
/usr/local/pgsql/lib, you have an issue you need to fix right there.)

If that's not it, the most likely interpretation is that the "No such
file" complaint refers to something that repmgr_funcs.so depends on
rather than repmgr_funcs.so itself.  You could try doing

ldd /usr/local/pgsql/lib/repmgr_funcs.so

to see if that shows any unresolved references.

There might also be useful detail in the new postmaster's log file from
the failed pg_upgrade; if ldd doesn't show any problem then you should
look there.

			regards, tom lane





view thread (2+ messages)

Message-ID: <2225132.1596402666@sss.pgh.pa.us>
Permalink:  ../2225132.1596402666@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2225132.1596402666@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, a.h.s.phani@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16568: pg_upgrade failed from 9.3 to 9.6
  In-Reply-To: <2225132.1596402666@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox