By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version |
|---|
| PostgreSQL 14.10 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18), 64-bit |
SELECT 1
CREATE TABLE
CREATE FUNCTION
CREATE TRIGGER
INSERT 0 1
ERROR: duplicate key value violates unique constraint "test_arr_key" DETAIL: Key (arr)=({1,2}) already exists.
| arr |
|---|
| {1,2} |
SELECT 1