GaussDB(DWS) Constraint Design Rules

DEFAULT and NULL Constraints

Partial Cluster Key

A partial cluster key (PCK) is a local clustering technology used for column-store tables. After creating a PCK, you can quickly filter and scan fact tables using min or max sparse indexes in GaussDB(DWS). Comply with the following rules to create a PCK:

Unique Constraint

Primary Key Constraint

Check Constraint