PRIMARY KEY and UNIQUE - Mailing list pgsql-general

From Erwin Ambrosch
Subject PRIMARY KEY and UNIQUE
Date
Msg-id 200202141509.g1EF9uM27132@email.ebutec.at
Whole thread Raw
Responses Re: PRIMARY KEY and UNIQUE
Re: PRIMARY KEY and UNIQUE
List pgsql-general
Hi,

I have a such a table.

CREATE TABLE int_article (
  name          VARCHAR(12) UNIQUE
  headline      TEXT,
  summary      TEXT,
  main            TEXT,
  footer           TEXT,
  PRIMARY KEY (name)
);

Is the UNIQUE constraint neccessary, because if have specified the column
name to be the primary key.

Thanks in advance
Erwin

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Error trying to restore db with blobs
Next
From: Darren Ferguson
Date:
Subject: Re: PRIMARY KEY and UNIQUE