Re: COPY ... FROM and index usage - Mailing list pgsql-general

From Reg Me Please
Subject Re: COPY ... FROM and index usage
Date
Msg-id 200711041615.33405.regmeplease@gmail.com
Whole thread Raw
In response to Re: COPY ... FROM and index usage  ("Josh Tolley" <eggyknap@gmail.com>)
Responses Re: COPY ... FROM and index usage  (Erik Jones <erik@myemma.com>)
List pgsql-general
Il Sunday 04 November 2007 14:59:10 Josh Tolley ha scritto:
> On 11/4/07, Reg Me Please <regmeplease@gmail.com> 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 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.
>
> - Josh/eggyknap

This sounds very reasonable to me.
But the first question remains unanswered:

Are the indexes updated during the COPY ... FROM ?

Thanks again.

--
Reg me Please

pgsql-general by date:

Previous
From: "Josh Tolley"
Date:
Subject: Re: COPY ... FROM and index usage
Next
From: Erik Jones
Date:
Subject: Re: COPY ... FROM and index usage