Re: unique problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: unique problem
Дата
Msg-id 15043.1099329325@sss.pgh.pa.us
обсуждение исходный текст
Ответ на unique problem  ("Joolz" <joolz@arbodienst-limburg.nl>)
Ответы Re: unique problem  ("Joolz" <joolz@arbodienst-limburg.nl>)
Список pgsql-general
"Joolz" <joolz@arbodienst-limburg.nl> writes:
> Is there a bug in the UNIQUE behaviour?

No known bugs, anyway.  I'm inclined to guess that your target table has
slightly different datatypes than the source, and that results in equal
values for some reason (such as fractional values being rounded to
integer, or char vs varchar having different ideas about significance of
trailing blanks).

> Is there any way I can DEFER the unique clause, or remove it and put
> it back later?

You can always drop and re-add the constraint ... but I'll be pretty
surprised if that gets around the problem (ie, I bet re-adding the
constraint will fail).

            regards, tom lane

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

Предыдущее
От: Vinko Vrsalovic
Дата:
Сообщение: Re: Daylight Savings Time handling on persistent connections
Следующее
От: John Fabiani
Дата:
Сообщение: Calling on all SQL guru's