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 1f99PR-0004fa-Ef for pgsql-general@arkaria.postgresql.org; Thu, 19 Apr 2018 13:15:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f99PQ-0006NR-03 for pgsql-general@arkaria.postgresql.org; Thu, 19 Apr 2018 13:15:32 +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 1f99PP-0006NH-Kp for pgsql-general@lists.postgresql.org; Thu, 19 Apr 2018 13:15:31 +0000 Received: from resqmta-ch2-07v.sys.comcast.net ([2001:558:fe21:29:69:252:207:39]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f99PI-0003p0-JC for pgsql-general@postgresql.org; Thu, 19 Apr 2018 13:15:30 +0000 Received: from resomta-ch2-01v.sys.comcast.net ([69.252.207.97]) by resqmta-ch2-07v.sys.comcast.net with ESMTP id 97ajfoQGVOcV399PHf8Iyu; Thu, 19 Apr 2018 13:15:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1524143723; bh=ErR6ObB+YxKU8HRJ+jATIG1QyxW/dZ8ot/exTsD7Y+E=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=Zc4y7ipijDMHEzERrx4Nn5b1ovLZWyNS3Dwco4cx9dvSSMEaE8lFx4bA7vnyMuMO8 B3QIpGmkWPibIsYhnEgOQER+esPbCwoB0MRj4O3G1nMYBc5VxU/wDPIo06ku7s97em 02NSkJ6uivK22oCLVJeQKIqAHpKLr9QegRYDYjA3jX4ChCNrg/4yYRH3vEDQo06cXt IEDmDMadoKoVBC0iyIQahwe9fLcjyWwUP41truXryt9akzHHIkZvq0/Vwi6gNNiaSK P4AKr+Q3XCW/VFX5UiUvWqmq83pusgL7MSq18EtE9xVzkk7BuWCAqc5tp/Deqznej1 jO9bb5NPa35RQ== Received: from jsievers.comcast.net ([12.187.116.132]) by resomta-ch2-01v.sys.comcast.net with ESMTPA id 99OyfPs3cq1GL99P2falWh; Thu, 19 Apr 2018 13:15:19 +0000 Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id 88311260056; Thu, 19 Apr 2018 08:15:04 -0500 (CDT) From: Jerry Sievers To: Adrian Klaver Cc: Tom Lane , Pavel Raiskup , pgsql-general@postgresql.org Subject: Re: pg_upgrade: when the --old-bindir requires "additional" $libdir/ plugins? References: <2188861.rCBv2PnPJv@nb.usersys.redhat.com> <29770.1524061343@sss.pgh.pa.us> Date: Thu, 19 Apr 2018 09:15:04 -0400 In-Reply-To: (Adrian Klaver's message of "Wed, 18 Apr 2018 07:43:01 -0700") Message-ID: <87lgdjz6av.fsf@jsievers.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-CMAE-Envelope: MS4wfJh+9WzSOybh73qcFWoywEE7bbHifhCZ4fqqcV+c7/mq+3xi6ClBT84MeMLoEU5vRglTtwDMfT4DKkRH6ptqklxqPr4/WYMINjrpb4ciKDNBkY6QVT/c rkIgVwhkFd7SX7jNZPpm7bLhdMi+h8Krm4jPjcNPQz9nlmY7Xu9oeu19NtIFt+iiMhP55cMLNw1CT1beXHaVzoJ/b1dUJTFWDsewpyWXkWWnWCXIfIjGfJsv Pzjc4vrJmxLRzKmLnhlCklCXzVO+d09mjwBkwIp/pZ/iUKJOedN9f2PiEki1R+7A List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver writes: > On 04/18/2018 07:22 AM, Tom Lane wrote: > >> 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 am obviously missing something. If the old server was using hstore > in a database how could hstore.so could be accessible to it but not > pg_dump? I presume because something stole the depended upon libs but went unnoticed due to the referring objs being generally unused. Along comes pg_upgrade and the requisite dump... BOOM! > >> >> 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 >> >> -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net p: 312.241.7800