Constraint parameters
The following configuration parameters control how Vertica evaluates and enforces constraints. All parameters are set at the database level through
ALTER DATABASE
.
Three of these parameters—EnableNewCheckConstraintsByDefault, EnableNewPrimaryKeysByDefault, and EnableNewUniqueKeysByDefault—can be used to enforce CHECK, PRIMARY KEY, and UNIQUE constraints, respectively. For details, see Constraint enforcement.
Parameters | Description |
---|---|
EnableNewCheckConstraintsByDefault |
Boolean parameter, set to 0 or 1:
|
EnableNewPrimaryKeysByDefault |
Boolean parameter, set to 0 or 1:
NoteVertica recommends enforcing constraints PRIMARY KEY and UNIQUE together. |
EnableNewUniqueKeysByDefault |
Boolean parameter, set to 0 or 1:
|
MaxConstraintChecksPerQuery |
Sets the maximum number of constraints that
For details, see Distributing Constraint Analysis. |