Re: references table(multiple columns go here)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: references table(multiple columns go here)
Дата
Msg-id 18473.1040311033@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: references table(multiple columns go here)  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
Ответы Re: references table(multiple columns go here)  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
Список pgsql-sql
Gary Stainburn <gary.stainburn@ringways.co.uk> writes:
> That did the trick.  However, I now have another problem with the constraint 
> complaining about there not being an index to refer to.  However, there is.  

No there isn't:

> jrank        int4 not null references ranks(rrank),    -- needs sorting
^^^^^^^^^^^^^^^^^^^^^^^

You have no index constraining rrank (by itself) to be unique.
        regards, tom lane


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

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: unsubscribe
Следующее
От: Gary Stainburn
Дата:
Сообщение: Re: references table(multiple columns go here)