Re: KEY or INDEX - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: KEY or INDEX
Date
Msg-id 20050503202908.GA8338@wolff.to
Whole thread Raw
In response to KEY or INDEX  (tövis <tovises@freemail.hu>)
List pgsql-novice
On Tue, May 03, 2005 at 11:57:31 +0200,
  tövis <tovises@freemail.hu> wrote:
> Hi All
> Seem to be that I can not create KEY exclude PRIMARY and FOREIGN.
> This means for one table I can create only one key.
> All other, frequently used operations (browse, search) should use INDEX-es (may be unique).
> Is these statemens are correct?

The FOREIGN KEY clause doesn't create keys.

You can use UNIQUE and NOT NULL clauses to create candidate keys.

pgsql-novice by date:

Previous
From:
Date:
Subject: Re: Foreign Key Problem
Next
From: "Celia McInnis"
Date:
Subject: retrieving a previously defined stored procedure from the database?