Re: Primary Key - Mailing list pgsql-general

From Michael Glaesemann
Subject Re: Primary Key
Date
Msg-id F123863D-4814-4EC1-9A4D-07DE2F7D4725@seespotcode.net
Whole thread Raw
In response to Re: Primary Key  ("James B. Byrne" <byrnejb@harte-lyne.ca>)
List pgsql-general
On Nov 23, 2007, at 17:35 , James B. Byrne wrote:

> Why is this desire not better satisfied by an index rather than a key?

What's your distinction between an index and a key? For what it's
worth, both UNIQUE and PRIMARY KEY constrain a column (or set of
columns) to be unique, or a key in the logical sense. Uniqueness is
implemented in terms of btree indexes in PostgreSQL. It seems to me
you're conflating logical (key) and physical (index) concepts here.

Michael Glaesemann
grzm seespotcode net



pgsql-general by date:

Previous
From: "James B. Byrne"
Date:
Subject: Re: Primary Key
Next
From: Eric Davies
Date:
Subject: manipulating HeapTuples in a libpq client