Re: COPY command details

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Benjamin Arai <benjamin(at)araisoft(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: COPY command details
Date: 2007-03-29 23:35:45
Message-ID: 5648.1175211345@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Benjamin Arai <benjamin(at)araisoft(dot)com> writes:
> I would prefer not to drop the index because the database is several
> hundred gigs. I would prefer to incrementally add to the index.

This may well be false economy. I don't have numbers at hand, but a
full rebuild can be substantially faster than adding a large number
of rows to the index incrementally. Also, you don't end up with a
physically disordered index, so there is some ongoing performance
benefit.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-03-29 23:53:38 Re: Some encoding trouble via libpq
Previous Message Lew 2007-03-29 22:44:36 Re: coalesce for null AND empty strings