Are check constraints always evaluated on UPDATE?

Started by bubba postgresalmost 15 years ago2 messagesgeneral
Jump to latest
#1bubba postgres
bubba.postgres@gmail.com

Are there any optimizations around check constraints such that they will not
be evaluated if constituent columns are not updated?

Regards,
-JD

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: bubba postgres (#1)
Re: Are check constraints always evaluated on UPDATE?

bubba postgres <bubba.postgres@gmail.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