HF RL Explorer

Task: Implement UPSERT (INSERT ... ON CONFLICT) in PostgreSQL

Task: Implement UPSERT (INSERT ... ON CONFLICT) in PostgreSQL: a task in Terminal-Lego-15k (Harbor dataset). Implement a PostgreSQL upsert solution that correctly handles inserting new rows and updating existing rows when a conflict occurs on the primary key. The solution must be safe for…

The task

Implement a PostgreSQL upsert solution that correctly handles inserting new rows and updating existing rows when a conflict occurs on the primary key. The solution must be safe for concurrent transactions.

Part of PrimeIntellect/Terminal-Lego-15k.