By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 1
ERROR: cannot insert a non-DEFAULT value into column "id" DETAIL: Column "id" is an identity column defined as GENERATED ALWAYS. HINT: Use OVERRIDING SYSTEM VALUE to override.
| id | name |
|---|---|
| 1 | foo |
SELECT 1
INSERT 0 1
| id | name |
|---|---|
| 1 | foo |
| 42 | bar |
SELECT 2