Skip to content

Instantly share code, notes, and snippets.

@urcadox
Created June 13, 2019 16:22
Show Gist options
  • Save urcadox/91afbbfccfa4f6cdcbf523aa08995305 to your computer and use it in GitHub Desktop.
Save urcadox/91afbbfccfa4f6cdcbf523aa08995305 to your computer and use it in GitHub Desktop.
alter table records
add constraint cname_single_record_per_name_a
exclude using gist (name with =, "type" with <>)
where ("type" IN ('A', 'CNAME'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment