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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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 14:05:23
Message-ID: 9742.1091455523@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

jseymour(at)linxnet(dot)com (Jim Seymour) writes:
> Janning Vygen <vygen(at)gmx(dot)de> wrote:
>> 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.

Or at least we try to pick our extensions carefully ;-). I don't see
the point of this one ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pierre-Frédéric Caillaud 2004-08-02 14:23:04 Re: How to use as Functional Index to be used as Primary KEY
Previous Message Michal Taborsky 2004-08-02 13:50:25 Re: I have some questions...