I am trying to do bulk insert data in postgres using Binary copy, as below
await connection.BeginBinaryImportAsync($"COPY ph_numbers FROM STDIN (FORMAT BINARY));
This table already contains millions of records and I just want to ignore the records already present there.
I went through the documentation and could not find any efficient way to ignore duplicates.