Re: Pet Peeves? - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Pet Peeves?
Date
Msg-id 498C40D5.9050409@gmx.net
Whole thread Raw
In response to Re: Pet Peeves?  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-general
Alvaro Herrera wrote:
> A trivial, stupid implementation is perhaps not too difficult.  The
> problem is getting the smarts right, i.e. an optimized version.  You
> certainly don't want to be executing a query against a large table for
> every INSERT on another one, for example; it's better if if you can
> figure out when to skip it.

If you do it using the constraint trigger mechanism, it would work very
similar to foreign keys, I'd imagine.  Instead of running a query
against the primary key table, you'd run the check constraint expression.

pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Turning off automatic ranking on words
Next
From: James Dooley
Date:
Subject: Searching a gin index