Re: "blah" is not a domain error

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: "blah" is not a domain error
Дата
Msg-id 20060526214429.GZ59464@pervasive.com
обсуждение исходный текст
Ответ на Re: "blah" is not a domain error  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: "blah" is not a domain error  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Wed, May 24, 2006 at 05:29:34PM -0400, Tom Lane wrote:
> "Jim C. Nasby" <jnasby@pervasive.com> writes:
> > I know domain support is pretty broken, so maybe this is a known issue...
>
> What are you concerned about exactly?  It looks perfectly reasonable
> to me.  "money" is a base type not a domain.

Oops... I thought we'd removed it.

Shouldn't it be an error to create a domain that conflicts with an existing
type?

bench=# create domain money as numeric(21,2);
CREATE DOMAIN
bench=# drop domain money;
ERROR:  "money" is not a domain
bench=# create domain money as numeric(21,2);
ERROR:  type "money" already exists
bench=# select version();
                                               version
------------------------------------------------------------------------------------------------------
 PostgreSQL 8.2devel on x86_64-unknown-freebsd6.0, compiled by GCC gcc (GCC) 3.4.4 [FreeBSD] 20050518
(1 row)

bench=#
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2455: psql failing to restore a table because of a constaint violation.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: "blah" is not a domain error