Avoid duplicacy in database while populating

I’m receiving some data to be inserted into the PostgreSQL database. But to avoid duplicacy, I want to apply a condition before inserting it into the database, like if the message_id already exists, then don’t insert,

If you using PostgreSQL node in n8n

There is a insert or update operation and replace the id to message_id

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.