UNIQUE constraint fails - Mailing list pgsql-general

From Louis-David Mitterrand
Subject UNIQUE constraint fails
Date
Msg-id 20010223102338.A607@apartia.ch
Whole thread Raw
Responses Re: UNIQUE constraint fails  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Boszormenyi Zoltan
Date:
Subject: Re: how critical is WAL
Next
From: Renaud Tthonnart
Date:
Subject: Re: Query with multiples operators BETWEEN