Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres node: insert - Identity column not recognized #12249

Open
Thomlov81 opened this issue Dec 16, 2024 · 3 comments
Open

Postgres node: insert - Identity column not recognized #12249

Thomlov81 opened this issue Dec 16, 2024 · 3 comments
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@Thomlov81
Copy link

Bug Description

Postgres node does not recognize Postgres Identity column as auto_increment ID column.
https://www.postgresql.org/docs/current/ddl-identity-columns.html

This does not work:
create table
public.pl_products (
id bigint generated by default as identity not null,

image

This works:

CREATE TABLE public.pl_products_example_copy (
id bigint NOT NULL DEFAULT nextval('pl_products_example_copy_id_seq'),

image

To Reproduce

Create a postgres table using postgres identity column:

create table
public.pl_test (
id bigint generated by default as identity not null
) tablespace pg_default;

Add postgres node in n8n, using insert.

Observe that the column is reported as mandatory, and can't be removed.

Expected behavior

Being able to detelete the column, to let postgres generade the new identity value.

Operating System

Docker

n8n Version

1.71.3

Node.js Version

20.18.0

Database

PostgreSQL

Execution mode

queue

@Joffcom
Copy link
Member

Joffcom commented Dec 16, 2024

Hey @Thomlov81,

We have created an internal ticket to look into this which we will be tracking as "N8N-7976"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Dec 16, 2024
@q1LLa
Copy link

q1LLa commented Dec 16, 2024

@coder36
Copy link

coder36 commented Dec 17, 2024

Have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

4 participants