doc: explain how to use domain types properly (#4134)

This commit is contained in:
Ariel Mashraki
2024-07-12 12:45:42 +03:00
committed by GitHub
parent 7871b82e81
commit 826aa41c27
30 changed files with 3453 additions and 6 deletions

View File

@@ -0,0 +1,5 @@
CREATE DOMAIN us_postal_code AS TEXT
CHECK(
VALUE ~ '^\d{5}$'
OR VALUE ~ '^\d{5}-\d{4}$'
);