Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bn2L6-0005Mf-EC for pgsql-admin@arkaria.postgresql.org; Thu, 22 Sep 2016 11:38:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bn2L6-0006r3-1K for pgsql-admin@arkaria.postgresql.org; Thu, 22 Sep 2016 11:38:52 +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 1bn2JQ-0004aj-Aw for pgsql-admin@postgresql.org; Thu, 22 Sep 2016 11:37:08 +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 1bn2JN-0002wB-Kf for pgsql-admin@postgresql.org; Thu, 22 Sep 2016 11:37:07 +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 u8MBax2q014202; Thu, 22 Sep 2016 07:36:59 -0400 From: Tom Lane To: =?UTF-8?B?VG9tw6HFoSBVa28=?= cc: pgsql-admin@postgresql.org Subject: Re: Problem with extension In-reply-to: References: <05172a3859cb6805b368084dfd015dbc@mail.gmail.com> Comments: In-reply-to =?UTF-8?B?VG9tw6HFoSBVa28=?= message dated "Thu, 22 Sep 2016 12:46:59 +0200" Date: Thu, 22 Sep 2016 07:36:59 -0400 Message-ID: <14201.1474544219@sss.pgh.pa.us> X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org =?UTF-8?B?VG9tw6HFoSBVa28=?= writes: > Recreating extension again via „CREATE EXTENSION“ doesn’t work > XY=# CREATE EXTENSION hstore SCHEMA public; > ERROR: type "hstore" already exists > XY=# CREATE EXTENSION hstore; > ERROR: type "hstore" already exists Perhaps what you've got there is an hstore installation from before extensions existed? Try "create extension hstore from unpackaged" to update it. > Another thing, when we try to add extesion with insert to pg_extension it > gets OID far greater than any other: > XY=# select *,pg_extension.oid from pg_extension; When you don't know what you are doing, trying to fix it with manual surgery on the system catalogs is a good way to make things worse. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin