UNIQUE constraint fails

Поиск
Список
Период
Сортировка
От Louis-David Mitterrand
Тема UNIQUE constraint fails
Дата
Msg-id 20010223102338.A607@apartia.ch
обсуждение исходный текст
Ответы Re: UNIQUE constraint fails  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
With 7.1b4:

test=# create table auction_type(id serial,login text,birthday timestamp);

test=# create table auction(unique(login)) inherits("auction_type");
ERROR:  inherited attribute "login" cannot be a PRIMARY KEY because it is not marked NOT NULL

But I didn't ask that "login" be a PRIMARY KEY, only a UNIQUE. What's
going on there?

Cheers,

--
    ARICIE: Vous laissez dans l'erreur un p�re qui vous aime ?
            Cruel, si de mes pleurs m�prisant le pouvoir,
            Vous consentez sans peine � ne plus me revoir,
            Partez, s�parez-vous de la triste Aricie.
                                          (Ph�dre, J-B Racine, acte 5, sc�ne 1)

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

Предыдущее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: how critical is WAL
Следующее
От: Renaud Tthonnart
Дата:
Сообщение: Re: Query with multiples operators BETWEEN