CopyManager(In/out) vs. delete/insert directly - Mailing list pgsql-performance

From Emi Lu
Subject CopyManager(In/out) vs. delete/insert directly
Date
Msg-id 54400EDE.7030801@encs.concordia.ca
Whole thread Raw
List pgsql-performance
Hello,

Two options for data (>1M), may I know which one better please?

(1) copyOut (JDBC copyManager)
      t1 into a.csv
      delete t2 where pk.cols in t1
      copyIn t2 from a.csv

(2) setautoCommit(false);
      delete t2 where pk.cols in t1;
      insert t2 select * from t1;

Thank you
Emi





pgsql-performance by date:

Previous
From: Дмитрий Шалашов
Date:
Subject: Re: Partitioned tables and SELECT ... ORDER BY ... LIMIT
Next
From: Josh Berkus
Date:
Subject: 9.4 performance improvements test