Re: How to use as Functional Index to be used as Primary KEY

From: jseymour(at)linxnet(dot)com (Jim Seymour)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to use as Functional Index to be used as Primary KEY
Date: 2004-08-02 11:57:42
Message-ID: 20040802115742.CE707430E@jimsun.linxnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Janning Vygen <vygen(at)gmx(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Aaron Burghardt 2004-08-02 12:01:12 Re: PostgreSQL, GnuCash
Previous Message Michal Taborsky 2004-08-02 11:50:04 Re: I have some questions...