Re: How to use as Functional Index to be used as Primary KEY - Mailing list pgsql-general

From jseymour@linxnet.com (Jim Seymour)
Subject Re: How to use as Functional Index to be used as Primary KEY
Date
Msg-id 20040802115742.CE707430E@jimsun.linxnet.com
Whole thread Raw
In response to Re: How to use as Functional Index to be used as Primary KEY  (Janning Vygen <vygen@gmx.de>)
Responses Re: How to use as Functional Index to be used as Primary KEY
Re: How to use as Functional Index to be used as Primary KEY
Re: How to use as Functional Index to be used as Primary KEY
List pgsql-general
Janning Vygen <vygen@gmx.de> wrote:
>
[snip]
>
> Thanks to Tom and Peter for your answers. I will design my table without a
> primary key and use my unique index instead of a primary key. As this unique
> key is the same as a primary key i dont see the reason why postgresql
> should't extend the specs and allow functional primary key indizes.

Because, as Tom Lane wrote: "The SQL spec says that primary keys are
columns or lists of columns."  Unlike some other SQL RDBMs, PostgreSQL
at least *tries* (mostly) to be SQL standards compliant.

Jim

pgsql-general by date:

Previous
From: Michal Taborsky
Date:
Subject: Re: I have some questions...
Next
From: Aaron Burghardt
Date:
Subject: Re: PostgreSQL, GnuCash