You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have identity column in a table you will get error like
error: relation "app_public.app_public.demo_id_seq" does not exist
To Reproduce
Create a table like below
CREATE TABLE IF NOT EXISTS app_public.demo
(
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
name TEXT NOT NULL
);
Follow instructions given here, there with npx tsx seed.ts you will get an error.
Expected behavior
Support identity columns in Postgres even though there is not visible sequence created by Postgres with identity columns unlike serial columns. (identity sequences are manged internally by Postgres)
Bug report
Describe the bug
If you have identity column in a table you will get error like
To Reproduce
Create a table like below
Follow instructions given here, there with
npx tsx seed.ts
you will get an error.Expected behavior
Support identity columns in Postgres even though there is not visible sequence created by Postgres with identity columns unlike serial columns. (identity sequences are manged internally by Postgres)
System information
Additional context
https://www.postgresql.org/docs/17/ddl-identity-columns.html
The text was updated successfully, but these errors were encountered: