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 1f8oIg-0003zQ-1N for pgsql-general@arkaria.postgresql.org; Wed, 18 Apr 2018 14:43:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8oId-0000PT-VY for pgsql-general@arkaria.postgresql.org; Wed, 18 Apr 2018 14:43:07 +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 1f8oIc-0000PI-NM for pgsql-general@lists.postgresql.org; Wed, 18 Apr 2018 14:43:07 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8oIZ-0002lT-RZ for pgsql-general@postgresql.org; Wed, 18 Apr 2018 14:43:05 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BE1DC21B90; Wed, 18 Apr 2018 10:43:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 18 Apr 2018 10:43:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=mW0V5sne8xc4bTIvszT2oZ7D98Gxi dfHZxoWWt3pwo8=; b=IaE4XYFdacvUAnB74vTGW8xVaWV7hvC62+U7UWO/pQbyf hCniWoOPKAuVPyTZQPvKqhxyk1H+eL9feAyBNckFLiNLz/qTGwD8EnD4G4zLFTDI Mbq3nBLjn4Wh8Xsj6RyRuLXyRc1btiKTexcwYuZTbT8mCzFsDZqIkn4tmc0/drfp qW7abb+tNxONqF4Fhc/9y6NlcBKpYCUhp6UKgGr/JFlx2ZFCis62n+YUNLgnMupT OQghvF+ZzLPh2frbzmWvtt83C7Vf8GK5j/jqzxLdLl3oTXQo8rLB8xmqA04+H15p Xurcf4EynGt3Cqvo6TsTGtKRm/tVm0kHQ9+KyUyCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=mW0V5s ne8xc4bTIvszT2oZ7D98GxidfHZxoWWt3pwo8=; b=mHt8ZC5x7MhxuvOAlTCorD c/YS3yQbKG7E4Df2GnchQbjVTluzdjhIOjrNk4mMqPwzwyziyhtuDIJYtTQfoO/2 vcb8lPYbjQUZiQ9X0ovuHgTI/L7VPPRTkCeWZ9/1wvtjC/4kXKqh1of0LGDibl+W p/bxDnH9exCsB5ElNLwcN/30Tkn8YTSRi89IqcqvGxguSC6jO1v6qpfHNV0MrMcR XnJOjw4Gxgi/qKxqd655gida3SARW3dtcKLOiBTpjGTNyPM8SBc9ut9TiIAiiB6p RU8b3W6mcq0o2OuPy5UfUHoEBw3DSp+BggMVMempLKMgM8xKpVpRCH7NvVYDzrAg == X-ME-Sender: Received: from [192.168.1.2] (unknown [71.212.135.74]) by mail.messagingengine.com (Postfix) with ESMTPA id F1D36E43EC; Wed, 18 Apr 2018 10:43:01 -0400 (EDT) Subject: Re: pg_upgrade: when the --old-bindir requires "additional" $libdir/ plugins? To: Tom Lane , Pavel Raiskup Cc: pgsql-general@postgresql.org References: <2188861.rCBv2PnPJv@nb.usersys.redhat.com> <29770.1524061343@sss.pgh.pa.us> From: Adrian Klaver Message-ID: Date: Wed, 18 Apr 2018 07:43:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <29770.1524061343@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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 > > -- Adrian Klaver adrian.klaver@aklaver.com