Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 50A071AC5F01 for ; Thu, 5 Jul 2012 10:32:05 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SmmA7-0004HX-CT for pgsql-bugs@postgresql.org; Thu, 05 Jul 2012 13:32:04 +0000 Received: by pbbrp8 with SMTP id rp8so12796964pbb.19 for ; Thu, 05 Jul 2012 06:31:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:x-gm-message-state; bh=+fmlWTUhNnFKy81bZV+vV5ztcY45H3kdoDuOzq8nChA=; b=cTjrLmYSFIGVNTKo/yemgLDvuXjeAXJaaLqlh2Ym+AWVCsZ08N8To8Ps7i8Ty2svrs dMs0KF5oZz61oYdUmi1ItujlhOxu7rnwDOeYUU2Di0ix1rWl7HnJ8Co7PORXIwgX9rGR drxl6npXVjcckHXxu0K32HbFLr2Z05YdHLgxyy9IwWcbl/yaujGwfaSKNE6OV+kMBENM 4/Ejqxl3WvMzBPx//IjqCVuY4rQWt4Q+0kXvGTn+GX47dSQNtT/vBrJNeMTj7lmJawpp nBRYSKY534bjTDpgVSF5omiR6FTesSOUbG5QpOVNEwfy9xn+z8y6VKFAXCBFOasQMoz0 rAwg== Received: by 10.68.221.41 with SMTP id qb9mr27961407pbc.147.1341495110045; Thu, 05 Jul 2012 06:31:50 -0700 (PDT) Received: from ayaki.localdomain (124-169-169-118.dyn.iinet.net.au. [124.169.169.118]) by mx.google.com with ESMTPS id ru4sm19773669pbc.66.2012.07.05.06.31.47 (version=SSLv3 cipher=OTHER); Thu, 05 Jul 2012 06:31:49 -0700 (PDT) Message-ID: <4FF59740.5030803@ringerc.id.au> Date: Thu, 05 Jul 2012 21:31:44 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: Gary Haran CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6718: Cannot delete, create or check existence of extension References: <4FF53ABB.4060209@ringerc.id.au> In-Reply-To: Content-Type: multipart/alternative; boundary="------------030507010509000605040401" X-Gm-Message-State: ALoCoQkMd5O8iXy13tlsffiaqZtIsPVpbiC+WrSH7y6lY/nknGBP6DhcVJB2BkfBQP/EZHiToGfd X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/25 X-Sequence-Number: 33501 This is a multi-part message in MIME format. --------------030507010509000605040401 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 07/05/2012 09:06 PM, Gary Haran wrote: > I installed it using an hstore.sql file that comes with the home brew > (https://github.com/mxcl/homebrew/) version of postgresql on OS X. > Maybe we missed a step or something in the whole installation process. > > We most likely upgraded our pg version at some point (we try to stay > with the times). If you upgrade an existing database to 9.1 and that database has contrib modules loaded in it, you must convert them to extensions using the syntax I gave previously. It's right there in the release notes under "Migrating to version 9.1": http://www.postgresql.org/docs/9.1/static/release-9-1.html#AEN107367 This is a bit of a wart, in that it'd be much nicer to be able to transparently re-package pre-extension contrib modules into extensions. I know Dimitri and Tom tried to get this working, but it clearly wasn't possible to make it work simply and reliably. Since it's a one-off migration during upgrade, it isn't that big a deal. If you need help doing this or you have further questions, please ask for help on the pgsql-general mailing list. -- Craig Ringer --------------030507010509000605040401 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 07/05/2012 09:06 PM, Gary Haran wrote:
I installed it using an hstore.sql file that comes with the home brew (https://github.com/mxcl/homebrew/) version of postgresql on OS X.  Maybe we missed a step or something in the whole installation process.

We most likely upgraded our pg version at some point (we try to stay with the times).
If you upgrade an existing database to 9.1 and that database has contrib modules loaded in it, you must convert them to extensions using the syntax I gave previously. It's right there in the release notes under "Migrating to version 9.1":

http://www.postgresql.org/docs/9.1/static/release-9-1.html#AEN107367

This is a bit of a wart, in that it'd be much nicer to be able to transparently re-package pre-extension contrib modules into extensions. I know Dimitri and Tom tried to get this working, but it clearly wasn't possible to make it work simply and reliably. Since it's a one-off migration during upgrade, it isn't that big a deal.

If you need help doing this or you have further questions, please ask for help on the pgsql-general mailing list.

--
Craig Ringer
--------------030507010509000605040401--