Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5F1N-0001nL-DE for pgsql-general@arkaria.postgresql.org; Tue, 24 May 2016 16:17:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b5F1M-0000tx-Vv for pgsql-general@arkaria.postgresql.org; Tue, 24 May 2016 16:17:29 +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_2) (envelope-from ) id 1b5F1M-0000tr-HD for pgsql-general@postgresql.org; Tue, 24 May 2016 16:17:28 +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_2) (envelope-from ) id 1b5F1I-0004eS-OW for pgsql-general@postgresql.org; Tue, 24 May 2016 16:17:28 +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 u4OGHL1L001126; Tue, 24 May 2016 12:17:21 -0400 From: Tom Lane To: parihaaraka cc: pgsql-general@postgresql.org Subject: Re: pg_upgrade error regarding hstore operator In-reply-to: <1464104743227-5904776.post@n5.nabble.com> References: <4b5993299ed948728e2ad6e278861807@NAIAD.omni.imsweb.com> <22170.1457479307@sss.pgh.pa.us> <15c0241a4a14409d9bda8c29a9673d68@NAIAD.omni.imsweb.com> <1464104743227-5904776.post@n5.nabble.com> Comments: In-reply-to parihaaraka message dated "Tue, 24 May 2016 08:45:43 -0700" Date: Tue, 24 May 2016 12:17:21 -0400 Message-ID: <1125.1464106641@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 parihaaraka writes: > I have the same issue after pg_upgrade from 9.3 to 9.5. > pg_dump generates excess commands like > CREATE OPERATOR FAMILY bit_ops USING gin; > ... > while all of this is done during CREATE EXTENSION This is fixed in the latest round of minor releases, but not in a way that will help you if you already pg_upgrade'd such an extension: http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=6cead413b Per the comments there, you could manually add that operator family back to its extension, or just ignore the duplicate-opfamily complaints you'd get during a restore. 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