By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version |
|---|
| PostgreSQL 14.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10), 64-bit |
SELECT 1
CREATE TABLE
INSERT 0 2
| id | text_array |
|---|---|
| 1 | {0123456789,abcedeghij} |
| 2 | {0123456789,abcedeghij,uvwxy} |
SELECT 2
ERROR: new row for relation "limit_total_length" violates check constraint "limit_total_length_text_array_check" DETAIL: Failing row contains (3, {0123456789,abcedeghij,uvwxyz01}).