Re: [HACKERS] BUG with UNIQUE clause

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] BUG with UNIQUE clause
Дата
Msg-id 19035.937403195@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG with UNIQUE clause  ("Stéphane FILLON" <fillons@offratel.nc>)
Список pgsql-sql
"=?iso-8859-1?Q?St=E9phane_FILLON?=" <fillons@offratel.nc> writes:
> The UNIQUE constraint doesn't work on a field if I use a DEFAULT clause
> on a table.

This sounds closely related to a fix that Thomas Lockhart just made.
IIRC the complained-of symptom was that PRIMARY KEY on one column plus
UNIQUE on another didn't work, but the real problem was that PRIMARY
KEY implies UNIQUE and the table declaration code was getting confused
by two different UNIQUE columns in one table.  It could be that his fix
addresses your problem too.  Check the pghackers archives for the
last couple weeks to find the patch.

            regards, tom lane

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

Предыдущее
От: Molnár László
Дата:
Сообщение: trees in postgres
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] to do's?