pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Pavel Raiskup <praiskup@redhat.com>
To: pgsql-general@postgresql.org
Subject: Re: pg_upgrade: when the --old-bindir requires "additional" $libdir/ plugins?
Date: Wed, 18 Apr 2018 07:18:41 -0700
Message-ID: <71a169a3-3e81-68b3-ae52-5c8a726a2f31@aklaver.com> (raw)
In-Reply-To: <2188861.rCBv2PnPJv@nb.usersys.redhat.com>
References: <2188861.rCBv2PnPJv@nb.usersys.redhat.com>

On 04/18/2018 07:07 AM, Pavel Raiskup wrote:
> Hi all,
> 
> with a huge delay, I've seen this question [1].
> 
> . and it seems like the hstore.so was somewhat intimately integrated into
> OP's database so the '/usr/bin/pg_dump --schema-only --binary-upgrade
> --format=custom' called through 'pg_upgrade' failed with:
> 
>    pg_dump: [archiver (db)] query failed: ERROR:  could not access file
>    "$libdir/hstore": No such file or directory

 From [1] it seems there is confusion in the system about where $libdir 
is. Did anyone run pg_config to try to track this down?

> 
> Which means that the dump from old datadir, with old server (without
> hstore.so packaged) failed.  But playing with hstore.so a bit, the upgrade
> always worked smoothly for me even without the "old" hstore.so

I am not following the above. If you played with hstore.so how could it 
not be around? Or does this have something to do with 'old'?

> 
> Googling around, I only found that there were some incompatible changes
> historically in hstore.so causing pg_upgrade failure;  but this is
> different issue -- in the issue I talk about now the module was not found
> at all, even though it is usually even not searched for.
> 
> So the question is what circumstances could cause this issue in
> particular?  Is it expected in general that, to make the pg_upgrade run
> smooth, all the "loaded" server modules are built against and available
> for the --old-bindir server?  Don't we have some reproducer for this
> kind of issues?
> 
> [1] https://ask.fedoraproject.org/en/question/69316/postgresql-doesnt-work-after-upgrade-to-f22/
> [2] https://bugzilla.redhat.com/show_bug.cgi?id=1557490
> 
> Thank for hints,
> Pavel
> 
> 
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (8+ messages)  latest in thread

Message-ID: <71a169a3-3e81-68b3-ae52-5c8a726a2f31@aklaver.com>
Permalink:  ../71a169a3-3e81-68b3-ae52-5c8a726a2f31@aklaver.com/
Also on:    postgresql.org/message-id/71a169a3-3e81-68b3-ae52-5c8a726a2f31@aklaver.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, praiskup@redhat.com
  Subject: Re: pg_upgrade: when the --old-bindir requires "additional" $libdir/ plugins?
  In-Reply-To: <71a169a3-3e81-68b3-ae52-5c8a726a2f31@aklaver.com>
  References: <2188861.rCBv2PnPJv@nb.usersys.redhat.com> <71a169a3-3e81-68b3-ae52-5c8a726a2f31@aklaver.com>

* 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