Re: [GENERAL] COPY ... FROM and index usage

2007-11-05 Thread Lincoln Yeoh
Hi, Anyone have comparisons/benchmarks to give some idea of the potential performance gains? Say compared to doing the stuff here: http://www.postgresql.org/docs/8.2/static/populate.html Regards, Link. At 09:35 AM 11/5/2007, Toru SHIMOGAKI wrote: Dimitri, thank you for your quoting. I'm a

[GENERAL] COPY ... FROM and index usage

2007-11-04 Thread Reg Me Please
Hi all. I'd like to know whether the indexes on a table are updated or not during a COPY ... FROM request. That is, should I drop all indexes during a COPY ... FROM in order to gain the maximum speed to load data? Thanks. -- Reg me Please ---(end of

Re: [GENERAL] COPY ... FROM and index usage

2007-11-04 Thread Josh Tolley
On 11/4/07, Reg Me Please [EMAIL PROTECTED] wrote: Hi all. I'd like to know whether the indexes on a table are updated or not during a COPY ... FROM request. That is, should I drop all indexes during a COPY ... FROM in order to gain the maximum speed to load data? Thanks. Although

Re: [GENERAL] COPY ... FROM and index usage

2007-11-04 Thread Reg Me Please
Il Sunday 04 November 2007 14:59:10 Josh Tolley ha scritto: On 11/4/07, Reg Me Please [EMAIL PROTECTED] wrote: Hi all. I'd like to know whether the indexes on a table are updated or not during a COPY ... FROM request. That is, should I drop all indexes during a COPY ... FROM in order

Re: [GENERAL] COPY ... FROM and index usage

2007-11-04 Thread Erik Jones
On Nov 4, 2007, at 9:15 AM, Reg Me Please wrote: Il Sunday 04 November 2007 14:59:10 Josh Tolley ha scritto: On 11/4/07, Reg Me Please [EMAIL PROTECTED] wrote: Hi all. I'd like to know whether the indexes on a table are updated or not during a COPY ... FROM request. That is, should I

Re: [GENERAL] COPY ... FROM and index usage

2007-11-04 Thread Reg Me Please
Il Sunday 04 November 2007 16:21:41 Erik Jones ha scritto: On Nov 4, 2007, at 9:15 AM, Reg Me Please wrote: Il Sunday 04 November 2007 14:59:10 Josh Tolley ha scritto: On 11/4/07, Reg Me Please [EMAIL PROTECTED] wrote: Hi all. I'd like to know whether the indexes on a table are updated

Re: [GENERAL] COPY ... FROM and index usage

2007-11-04 Thread Tom Lane
Josh Tolley [EMAIL PROTECTED] writes: Although questions of which is faster often depend very heavily on the data involved, the database schema, the hardware, etc., typically people find it best to drop all indexes during a large import and recreate them afterward. See also the extensive

Re: [GENERAL] COPY ... FROM and index usage

2007-11-04 Thread Dimitri Fontaine
Hi, Le Sunday 04 November 2007 11:22:19 Reg Me Please, vous avez écrit : That is, should I drop all indexes during a COPY ... FROM in order to gain the maximum speed to load data? When looking for a way to speed up data loading, you may want to consider pgbulkload, a project which optimizes

Re: [GENERAL] COPY ... FROM and index usage

2007-11-04 Thread Toru SHIMOGAKI
Dimitri, thank you for your quoting. I'm a pg_bulkload author. pg_bulkload is optimized especially for appending data to table with indexes. If you use it, you don't need to drop index before loading data. But you have to consider conditions carefully as Dimitri said below. See also pg_bulkload