Re: Where's The Primary Key? - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: Where's The Primary Key?
Date
Msg-id 20030728164704.GB25693@wolff.to
Whole thread Raw
In response to Re: Where's The Primary Key?  ("A.Bhuvaneswaran" <bhuvan@symonds.net>)
List pgsql-novice
On Mon, Jul 28, 2003 at 09:26:33 +0530,
>
> Primary key is the combination of unique index + not null. In your case,
> both are listed. For further details refer pg_indexes system view.

That isn't the whole story. The primary key of a table is also a default
for foreign keys. There can be several columns that have a unique index
and a not null constraint, but there can be only one primary key.
(The primary key can also be multicolumn.)

pgsql-novice by date:

Previous
From: "bruce"
Date:
Subject: Re: Accessing Postgres db from apache using PHP
Next
From: "bruce"
Date:
Subject: Re: [PHP] Accessing Postgres db from apache using PHP