Re: WIP: RangeTypes
От | Thom Brown |
---|---|
Тема | Re: WIP: RangeTypes |
Дата | |
Msg-id | AANLkTin_VUG3a8PTmpM653kyzEB0YESiRznW7CV2EHdx@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: WIP: RangeTypes (Jeff Davis <pgsql@j-davis.com>) |
Список | pgsql-hackers |
On 29 January 2011 18:52, Jeff Davis <pgsql@j-davis.com> wrote: > On Fri, 2011-01-28 at 21:52 +0000, Thom Brown wrote: >> Also, how do you remove a range type which coincides with a system >> range type. For example: >> >> postgres=# CREATE TYPE numrange AS RANGE (SUBTYPE=interval, >> SUBTYPE_CMP=interval_cmp); >> CREATE TYPE >> postgres=# drop type numrange; >> ERROR: cannot drop type numrange because it is required by the database system >> >> Is this because I shouldn't have been able to create this type in the >> first place? > > The types are in two different schemas. It's just as though you created > a table called pg_class. > > To drop the one you created, do: > DROP TYPE public.numrange; *facepalm* Of course. :) My bad. -- Thom Brown Twitter: @darkixion IRC (freenode): dark_ixion Registered Linux user: #516935
В списке pgsql-hackers по дате отправления: