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 1f8nvG-0002AB-CQ for pgsql-general@arkaria.postgresql.org; Wed, 18 Apr 2018 14:18:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8nvE-0007Lu-VF for pgsql-general@arkaria.postgresql.org; Wed, 18 Apr 2018 14:18:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8nvE-0007Li-Md for pgsql-general@lists.postgresql.org; Wed, 18 Apr 2018 14:18:56 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8nv2-0000Oe-7s for pgsql-general@postgresql.org; Wed, 18 Apr 2018 14:18:56 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9E4D921C8D; Wed, 18 Apr 2018 10:18:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 18 Apr 2018 10:18:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= 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=8xbzXEoodabxauZhweqJbzh2qM61r quxMh7X6mFwtY8=; b=CLSW9hadpoKKr3IZg0OBOJvrf6qgM8M6aKkxkuvY/LXL3 BpcczzmRlxcC1UdOFrlat2GFPxJZ2XTzqXrMjlZ512cCEYTLy20OYFziI/bHIWEE xgnOVA1uCUX46OWSeN+pPVP1JOmwCf+EJQH7T0etYM9XFgnnLrs1vsGnZYeTgrJE R37Ho95BrRnmqhjnPsmsCtUYNKIQ15EIHnYzPHLtGtaobBVcA1s0sVxuPulFMIPX a2L1WdPMevejqI2ypcgRVoGja8ZsrFnSfOupdHvwRA+GylqunZdka3lph6PWEJZG 1+fZ7Qw/Q0NMVZi+Z/eAbnEArYLdl4ziL1RORygcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=8xbzXE oodabxauZhweqJbzh2qM61rquxMh7X6mFwtY8=; b=Xppc0A00T5EppqYoAxZddH Lg3YGCmXpmNVSUDxvMSgrpRx88Kaxct3sxbci3mnGoM4bQcyHuEbUaQ0bujhii4Q 94LNroAjKgM2V8y5fNNU023yoK/FVo9OJJ6llwlWEWjx8B8pJvHMqrApF6APVZ9P 1a2Blqc82nYPGBPZxtUBccTHx1RiaLWmP+B0pdL5+wolQcQMZhb6RyHA2T8o2WKN hmX2yXNt2QqM1JPrk59ONPxNjX21M6iAnAqAjPVmfzJ/sft8gfGHLNWvNQmuTb+x CpOfLU/WqK20+w6FLr4COZjMDUg+UIan5T28kp9qcWSuVnB3ES2BwIespj7vDiAg == X-ME-Sender: Received: from [192.168.1.2] (unknown [71.212.135.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 0205FE4483; Wed, 18 Apr 2018 10:18:41 -0400 (EDT) Subject: Re: pg_upgrade: when the --old-bindir requires "additional" $libdir/ plugins? To: Pavel Raiskup , pgsql-general@postgresql.org References: <2188861.rCBv2PnPJv@nb.usersys.redhat.com> From: Adrian Klaver Message-ID: <71a169a3-3e81-68b3-ae52-5c8a726a2f31@aklaver.com> Date: Wed, 18 Apr 2018 07:18:41 -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: <2188861.rCBv2PnPJv@nb.usersys.redhat.com> 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: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