assertions and constraint triggers

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: assertions and constraint triggers
Date: 2010-08-11 05:31:42
Message-ID: 1281504702.9631.2.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thinking about SQL assertions (check constraints that are independent of
one particular table), do you think it would be reasonable to implement
those on top of constraint triggers? On creation you'd hook up a
trigger to each of the affected tables. And the trigger function runs
the respective check expression. Conceptually, this doesn't seem to be
very far away from foreign key constraints after all.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2010-08-11 07:12:17 Re: string_to_array with an empty input string
Previous Message Fujii Masao 2010-08-11 05:17:10 Re: RecordTransactionCommit() and SharedInvalidationMessages