Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adQwt-00066e-4K for pgsql-general@arkaria.postgresql.org; Tue, 08 Mar 2016 23:21:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1adQws-0004Kq-N2 for pgsql-general@arkaria.postgresql.org; Tue, 08 Mar 2016 23:21:54 +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.84) (envelope-from ) id 1adQwr-0004G6-LY for pgsql-general@postgresql.org; Tue, 08 Mar 2016 23:21:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adQwo-0006We-Eb for pgsql-general@postgresql.org; Tue, 08 Mar 2016 23:21:53 +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 u28NLl3a022171; Tue, 8 Mar 2016 18:21:47 -0500 From: Tom Lane To: "Feld, Michael (IMS)" cc: "pgsql-general@postgresql.org" Subject: Re: pg_upgrade error regarding hstore operator In-reply-to: <4b5993299ed948728e2ad6e278861807@NAIAD.omni.imsweb.com> References: <4b5993299ed948728e2ad6e278861807@NAIAD.omni.imsweb.com> Comments: In-reply-to "Feld, Michael (IMS)" message dated "Tue, 08 Mar 2016 18:27:06 +0000" Date: Tue, 08 Mar 2016 18:21:47 -0500 Message-ID: <22170.1457479307@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org "Feld, Michael (IMS)" writes: > I am attempting to upgrade my organization's database cluster from > 9.1.19 to 9.5.1 using the pg_upgrade utility. That's kind of a big jump :-( ... you missed the versions where => was deprecated as an operator name. > I tried dropping the operator before doing the upgrade but it's dependent on the existence of the hstore extension. Ideas? The clean solution would be to copy share/extension/hstore--1.0--1.1.sql from the 9.5 installation into the 9.1 installation and then do ALTER EXTENSION hstore UPDATE TO '1.1'; Under the hood that's just doing ALTER EXTENSION hstore DROP OPERATOR => (text, text); DROP OPERATOR => (text, text); but if you did that manually, you'd have a problem when you want to update hstore to current versions later. If you do what I suggest, the extension will properly look like it's 1.1 after pg_upgrade'ing. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general