Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aob8q-0007vj-B9 for pgsql-general@arkaria.postgresql.org; Fri, 08 Apr 2016 18:28:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aob8p-0007Fn-UA for pgsql-general@arkaria.postgresql.org; Fri, 08 Apr 2016 18:28:23 +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.84_2) (envelope-from ) id 1aoGAk-0002DZ-B7 for pgsql-general@postgresql.org; Thu, 07 Apr 2016 20:04:58 +0000 Received: from util-st-02.imsweb.com ([204.132.58.65]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoGAe-00023s-JG for pgsql-general@postgresql.org; Thu, 07 Apr 2016 20:04:56 +0000 Received: from PAN.omni.imsweb.com (pan.omni.imsweb.com [172.22.64.64]) by util-st-02.imsweb.com (Postfix) with ESMTP id 11927E164E; Thu, 7 Apr 2016 16:04:50 -0400 (EDT) Received: from NAIAD.omni.imsweb.com (172.22.64.103) by PAN.omni.imsweb.com (172.22.64.64) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 7 Apr 2016 16:04:49 -0400 Received: from NAIAD.omni.imsweb.com ([172.22.64.103]) by NAIAD.omni.imsweb.com ([172.22.64.103]) with mapi id 15.00.1178.000; Thu, 7 Apr 2016 16:04:49 -0400 From: "Feld, Michael (IMS)" To: Tom Lane CC: "pgsql-general@postgresql.org" Subject: Re: pg_upgrade error regarding hstore operator Thread-Topic: [GENERAL] pg_upgrade error regarding hstore operator Thread-Index: AdF5Z2tvCSwX6/yiTD6b7QV8/DOIOgAAJ0qwABTKRoAFoXlUUAAOKIEAAB8uY5A= Date: Thu, 7 Apr 2016 20:04:48 +0000 Message-ID: References: <4b5993299ed948728e2ad6e278861807@NAIAD.omni.imsweb.com> <22170.1457479307@sss.pgh.pa.us> <15c0241a4a14409d9bda8c29a9673d68@NAIAD.omni.imsweb.com> <4937.1459983664@sss.pgh.pa.us> In-Reply-To: <4937.1459983664@sss.pgh.pa.us> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [204.132.58.76] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Pg-Spam-Score: -2.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 Thanks for the reply Tom. template1 is definitely empty and does not contai= n any hstore objects. I did a little debugging and placed the below SQL bef= ore and after the hstore creation in the file produced by the pg_dump and d= etermined that these operator objects only become present immediately after= the creation of the hstore extension, and not before. Then, much later dow= n the pg_dump file, it attempts to create the operator family for these 4 i= tems producing the errors. I did a pg_dump of the same database on a 9.1 in= stance and it does not produce the operator creation objects SQL outside of= the extension. This seems to be something that happened as part of the pg_= upgrade. Any idea why these have showed up outside the extension? Is there = anything I can do to fix this? Thanks for all of your help. Mike SELECT am.amname AS index_method, opf.opfname AS opfamily_name, amop.amopopr::regoperator AS opfamily_operator FROM pg_am am, pg_opfamily opf, pg_amop amop WHERE opf.opfmethod =3D am.oid AND amop.amopfamily =3D opf.oid and opf.opfname like '%hstore%' ORDER BY index_method, opfamily_name, opfamily_operator; -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Wednesday, April 06, 2016 7:01 PM To: Feld, Michael (IMS) Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] pg_upgrade error regarding hstore operator "Feld, Michael (IMS)" writes: > Thanks for the assist Tom. That worked for us. Noticing a different > issue following the pg_upgrade. If we take a pg_dump of a database on > this upgraded instance with the hstore extension and try to pg_restore > it back up to the same instance we get the following errors Those are the *only* errors you get? That seems rather odd. I could belie= ve something like this happening if, say, you had an "unpackaged" (that is, pre-extensions) version of hstore lying about. But then you'd pr= obably get conflicts on all the hstore-related objects, not only the opclas= ses. In any case, by far the most likely explanation is that you're trying to re= store into a non-empty database, probably because you've put stuff into template1 and are cloning the new database from there. regards, tom lane ________________________________ Information in this e-mail may be confidential. It is intended only for the= addressee(s) identified above. If you are not the addressee(s), or an empl= oyee or agent of the addressee(s), please note that any dissemination, dist= ribution, or copying of this communication is strictly prohibited. If you h= ave received this e-mail in error, please notify the sender of the error. --=20 Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general