Exclusion constraints ensure that if any two rows are compared on the specified columns or expressions using the specified operators, at least one of these operator comparisons will return false or null.
Syntax
Exclusion constraints can be created like this in the CREATE TABLE ... CONSTRAINT ... EXCLUDE command
CREATE TABLE circles (
c circle,
EXCLUDE USING gist (c WITH &&)
);
You can find more information on the CREATE TABLE ... CONSTRAINT ... EXCLUDE
Or, you can add them to existing tables using the same syntax with ALTER TABLE
ALTER TABLE circles
ADD EXCLUDE
USING gist (c WITH &&);