Re: Are check constraints always evaluated on UPDATE?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: bubba postgres <bubba(dot)postgres(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Are check constraints always evaluated on UPDATE?
Date: 2011-06-17 21:47:21
Message-ID: 26713.1308347241@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

bubba postgres <bubba(dot)postgres(at)gmail(dot)com> writes:
> Are there any optimizations around check constraints such that they will not
> be evaluated if constituent columns are not updated?

Nope.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message bubba postgres 2011-06-17 22:45:25 Odd performance difference in check constraint : SQL(slow) vs plpgsql(fast)
Previous Message Leon Match 2011-06-17 21:35:39 merge in postgres trigger function