valid using INITIALLY DEFERRED

Started by Pavel Stehuleover 21 years ago3 messagesgeneral
Jump to latest
#1Pavel Stehule
pavel.stehule@gmail.com

Hello,

I try INITIALLY DEFERRED clause. In doc is relation between general
constraint and this clause. But combination with CHECK clause ends with
err message misplaced INITIALLY DEFERRED clause.

Is possible use INITIALLY DEFERRED with other variants constraint than
REFERENCES?

Thank You
Pavel Stehule

#2Michael Fuhr
mike@fuhr.org
In reply to: Pavel Stehule (#1)
Re: valid using INITIALLY DEFERRED

On Wed, Dec 22, 2004 at 04:17:29PM +0100, Pavel Stehule wrote:

I try INITIALLY DEFERRED clause. In doc is relation between general
constraint and this clause. But combination with CHECK clause ends with
err message misplaced INITIALLY DEFERRED clause.

The CREATE TABLE documentation for INITIALLY DEFERRED says, "If a
constraint is deferrable, this clause specifies the default time
to check the constraint." Just above that, the documentation for
DEFERRABLE says, "Only foreign key constraints currently accept
this clause. All other constraint types are not deferrable."

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Pavel Stehule (#1)
Re: valid using INITIALLY DEFERRED

Pavel Stehule <stehule@kix.fsv.cvut.cz> writes:

Is possible use INITIALLY DEFERRED with other variants constraint than
REFERENCES?

No, we only support deferring foreign key constraints at the moment.

regards, tom lane