pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Jaime Casanova <jaime@2ndquadrant.com>
Cc: gary.haran@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6718: Cannot delete, create or check existence of extension
Date: Thu, 05 Jul 2012 23:09:39 +0800
Message-ID: <4FF5AE33.5010800@ringerc.id.au> (raw)
In-Reply-To: <CAJKUy5gXrMYVbMQJdnjbfqT+-0+mSLOLeGKfP_x2khR++Fztnw@mail.gmail.com>
References: <E1SmTwp-0006YP-1E@wrigleys.postgresql.org>
	<4FF53ABB.4060209@ringerc.id.au>
	<CAJKUy5gXrMYVbMQJdnjbfqT+-0+mSLOLeGKfP_x2khR++Fztnw@mail.gmail.com>

On 07/05/2012 10:18 PM, Jaime Casanova wrote:
> On Thu, Jul 5, 2012 at 1:56 AM, Craig Ringer <ringerc@ringerc.id.au> 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




view thread (6+ messages)

Message-ID: <4FF5AE33.5010800@ringerc.id.au>
Permalink:  ../4FF5AE33.5010800@ringerc.id.au/
Also on:    postgresql.org/message-id/4FF5AE33.5010800@ringerc.id.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: ringerc@ringerc.id.au, jaime@2ndquadrant.com, gary.haran@gmail.com
  Subject: Re: BUG #6718: Cannot delete, create or check existence of extension
  In-Reply-To: <4FF5AE33.5010800@ringerc.id.au>
  References: <E1SmTwp-0006YP-1E@wrigleys.postgresql.org> <4FF53ABB.4060209@ringerc.id.au> <CAJKUy5gXrMYVbMQJdnjbfqT+-0+mSLOLeGKfP_x2khR++Fztnw@mail.gmail.com> <4FF5AE33.5010800@ringerc.id.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox