pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Raiskup <praiskup@redhat.com>
Cc: pgsql-general@postgresql.org
Subject: Re: pg_upgrade: when the --old-bindir requires "additional" $libdir/ plugins?
Date: Wed, 18 Apr 2018 10:22:23 -0400
Message-ID: <29770.1524061343@sss.pgh.pa.us> (raw)
In-Reply-To: <2188861.rCBv2PnPJv@nb.usersys.redhat.com>
References: <2188861.rCBv2PnPJv@nb.usersys.redhat.com>

Pavel Raiskup <praiskup@redhat.com> writes:
> . 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
> 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

Hi Pavel,

There are certainly plenty of reasons why extension .so's might be needed
during pg_dump, even in a binary-upgrade situation.  The first example
that comes to mind is that an hstore-type constant appearing in a view
definition would require hstore_out() to be invoked while dumping the view
definition.

I don't remember anymore whether I'd set up the postgresql-update package
to include the contrib modules for the old server version.  If I didn't,
it was an oversight :-(.

			regards, tom lane




view thread (8+ messages)  latest in thread

Message-ID: <29770.1524061343@sss.pgh.pa.us>
Permalink:  ../29770.1524061343@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29770.1524061343@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 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: tgl@sss.pgh.pa.us, praiskup@redhat.com
  Subject: Re: pg_upgrade: when the --old-bindir requires "additional" $libdir/ plugins?
  In-Reply-To: <29770.1524061343@sss.pgh.pa.us>
  References: <2188861.rCBv2PnPJv@nb.usersys.redhat.com> <29770.1524061343@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