Re: what about uniqueness of inherited primary keys - Mailing list pgsql-general

From Chris Travers
Subject Re: what about uniqueness of inherited primary keys
Date
Msg-id 017601c3cec6$7d64a460$9e00053d@winxp
Whole thread Raw
In response to what about uniqueness of inherited primary keys  (Andreas <maps.on@gmx.net>)
List pgsql-general
Hi all;

The real problem with using the trigger approach is as follows:

Normally the unique constraint is handled by an index (most efficient way),
but doing so using a trigger is more likely to lose this benefit and give
you some performance problems.

IIRC, the problems with inherited keys are, at present, the fact that
inherited indexes pose some problems.  Again, custom triggers would solve
that problem perhaps at a performance cost.

Best Wishes,
Chris Travers


pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: Is my MySQL Gaining ?
Next
From: "B. van Ouwerkerk"
Date:
Subject: Re: Is my MySQL Gaining ?