.\\" auto-generated by docbook2man-spec $Revision: 1.25 $
.TH "CREATE CONSTRAINT TRIGGER" "" "29 March 2001" "SQL - Language Statements" "SQL Commands"
.SH NAME
CREATE CONSTRAINT TRIGGER \- Create a trigger to support a constraint
.SH SYNOPSIS
.sp
.nf
CREATE CONSTRAINT TRIGGER \fIname\fR
    AFTER \fIevents\fR ON
    \fIrelation\fR \fIconstraint\fR \fIattributes\fR
    FOR EACH ROW EXECUTE PROCEDURE \fIfunc\fR '(' \fIargs\fR ')'
  
.sp
.fi
.SS "INPUTS"
.PP
.TP
\fB\fIname\fB\fR
The name of the constraint trigger.
.TP
\fB\fIevents\fB\fR
The event categories for which this trigger should be fired.
.TP
\fB\fIrelation\fB\fR
Table name of the triggering relation.
.TP
\fB\fIconstraint\fB\fR
Actual onstraint specification.
.TP
\fB\fIattributes\fB\fR
Constraint attributes.
.TP
\fB\fIfunc\fB(\fIargs\fB)\fR
Function to call as part of the trigger processing.
.PP
.SS "OUTPUTS"
.PP
.TP
\fBCREATE CONSTRAINT\fR
Message returned if successful.
.PP
.SH "DESCRIPTION"
.PP
\fBCREATE CONSTRAINT TRIGGER\fR is used from inside of 
\fBCREATE/ALTER TABLE\fR and by
\fBpg_dump\fR to create the special triggers for
referential integrity.
.PP
It is not intended for general use.
