Re: ON CONFLICT DO NOTHING ignored on bulk insert - Mailing list pgsql-general

From Michael Lewis
Subject Re: ON CONFLICT DO NOTHING ignored on bulk insert
Date
Msg-id CAHOFxGryjbEkS6pT+1WW1Z0j5GWF=zO5LHRNyon54a63XMKo4g@mail.gmail.com
Whole thread Raw
In response to Re: ON CONFLICT DO NOTHING ignored on bulk insert  (Hellmuth Vargas <hivs77@gmail.com>)
List pgsql-general
Are you wanting to minimize the locking time, or ensure the whole process completes as soon as possible? If the prior, you can insert into a temp table like the real one (which is maybe what pricelistnew is already), delete the rows where they don't have a valid reference, and then insert all remaining rows.

pgsql-general by date:

Previous
From: Hellmuth Vargas
Date:
Subject: Re: ON CONFLICT DO NOTHING ignored on bulk insert
Next
From: RAJAMOHAN
Date:
Subject: Null database entry in pg_stat_database on pg-12 version