Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8nye-0002Qo-Pk for pgsql-general@arkaria.postgresql.org; Wed, 18 Apr 2018 14:22:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8nyd-0003pe-Ou for pgsql-general@arkaria.postgresql.org; Wed, 18 Apr 2018 14:22:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8nyd-0003pU-DG for pgsql-general@lists.postgresql.org; Wed, 18 Apr 2018 14:22:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8nya-0002E3-W6 for pgsql-general@postgresql.org; Wed, 18 Apr 2018 14:22:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w3IEMNBB029771; Wed, 18 Apr 2018 10:22:23 -0400 From: Tom Lane To: Pavel Raiskup cc: pgsql-general@postgresql.org Subject: Re: pg_upgrade: when the --old-bindir requires "additional" $libdir/ plugins? In-reply-to: <2188861.rCBv2PnPJv@nb.usersys.redhat.com> References: <2188861.rCBv2PnPJv@nb.usersys.redhat.com> Comments: In-reply-to Pavel Raiskup message dated "Wed, 18 Apr 2018 16:07:50 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29769.1524061343.1@sss.pgh.pa.us> Date: Wed, 18 Apr 2018 10:22:23 -0400 Message-ID: <29770.1524061343@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Pavel Raiskup 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