By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
CREATE TABLE
INSERT 0 2
| code | some_value |
|---|---|
| 270000001 | 1 |
| 270000002 | 2 |
SELECT 2
ERROR: no partition of relation "stats_to_institution" found for row DETAIL: Partition key of the failing row contains (code) = (290000001).
ALTER TABLE
ALTER TABLE
INSERT 0 1
| code | some_value |
|---|---|
| 270000001 | 1 |
| 270000002 | 2 |
| 290000001 | 29 |
SELECT 3