Is it possible to just write the new data (rows) in Postgres DB?

I pull data every day and write to a Postgres DB instance. The existing table gets dropped at the beginning and the whole dataset including today’s fresh data gets written. This is sometimes problematic because some data feeds stay down occasionally, which results in the table being dropped but no data being written at all.

I was wondering if it is possible only to write the new data rows in Postgres DB, so an insert/append operation instead of write?

Here we go.

1 Like

@tone_n_tune you can try this node

1 Like

Would this compare the existing table in the DB first and then only append the new rows?

@tone_n_tune question is what would constitute a new entry in your database. Do you have a primary key or another restriction? Maybe you can check these examples


You could check out more examples in this article:

1 Like