Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 030D71AC5F03 for ; Thu, 5 Jul 2012 12:10:02 -0300 (ADT) Received: from mail-gh0-f174.google.com ([209.85.160.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Smngt-00050W-Sn for pgsql-bugs@postgresql.org; Thu, 05 Jul 2012 15:10:01 +0000 Received: by ghrr11 with SMTP id r11so7486871ghr.19 for ; Thu, 05 Jul 2012 08:09:45 -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:content-transfer-encoding :x-gm-message-state; bh=3mZtfwEviCzYTNkz6JTlO5KCZM0f1YzHdbfp07huCzw=; b=WTy9KaBlkYzwM5TL/WJf1jA37Oe+mubSf4bEzmUfJUuV2PlSV1cSPRd7zgmhR9GaMu S5ku6MCMySx9OPDSQiDVhyIRrhlv+sHW37M8GQXjZehl3U0W4KDWGmkgeMTOAtNc6q6S f1vqn/pGt2oh4zzs8ASmBc9kUtFsood0W04ZUZnqsqrhWqkn5haHoLfADX0Lj/Np7qsy 8tn9cbbws7HUDTribN+gCjLDXGGh4kfhQn+mNkTsZjvhRBFAw7QMVAyHcf9U5czDpq3A 4yEs6AFDeyCUg7ZmVwr6uKFKrC0ufyskmcc+1dxPBuqGykaIIcCCx3XIsHFU0dhrN69d teGQ== Received: by 10.66.75.74 with SMTP id a10mr38012795paw.46.1341500984639; Thu, 05 Jul 2012 08:09:44 -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 nj4sm6001613pbc.5.2012.07.05.08.09.41 (version=SSLv3 cipher=OTHER); Thu, 05 Jul 2012 08:09:43 -0700 (PDT) Message-ID: <4FF5AE33.5010800@ringerc.id.au> Date: Thu, 05 Jul 2012 23:09:39 +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: Jaime Casanova CC: gary.haran@gmail.com, 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: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmbHDA5l4Jbjw4z3YLfq7iyTo+b7fE63cQ81T1+d+fgDNRWUlY53IeSJj8x6d4Et88KgzMP X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/29 X-Sequence-Number: 33505 On 07/05/2012 10:18 PM, Jaime Casanova wrote: > On Thu, Jul 5, 2012 at 1:56 AM, Craig Ringer wrote: >> On 07/05/2012 02:05 AM, gary.haran@gmail.com wrote: >>> development=# create extension hstore; >>> ERROR: type "hstore" already exists >> First, thanks for the info in the report. >> >> At a guess, it has the hstore data type in it from before the extension >> system exists. You need to follow the upgrade instructions to convert it to >> an extension. > what about adding a HINT there? something like "you probably need to > use CREATE EXTENSION ... FROM unpackaged" > Yeah, I suggested that. It's not trivial to make sure that this is really because of the extension and not because the user just happened to create their own type called "hstore" (or whatever the type(s)/function(s) the ext provides) are, but I guess with a hint you don't have to. I'm assuming if it were simple it would've been done as part of extension implementation. It's certainly way beyond me. -- Craig Ringer