Postgresql – How to pass an array of tuples as parameter for a bulk UPSERT?
With this schema: CREATE TABLE tag ( tag_id int GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, tag_slug text UNIQUE NOT NULL, tag_name text NOT NULL ); I'm currently using Javascript to generate a bulk UPSERT command, like this (it uses…