Re: COPY with INDEXES question

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: Slavisa Garic <Slavisa(dot)Garic(at)infotech(dot)monash(dot)edu(dot)au>
Cc: Postgresql Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: COPY with INDEXES question
Date: 2004-02-06 02:55:28
Message-ID: 1076036127.308.586.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

On Thu, 2004-02-05 at 19:46, Slavisa Garic wrote:
> Hi,
>
> I have a quick question. In order to speed up insertion of large number of
> rows (100s of thousands) I replaced the INSERT with the COPY. This works
> fine but one question popped into my mind. Does copy updates indexes on
> that table if there are some defined?

Copy does nearly everything that standard inserts to. RULES are the only
thing that come to mind. Triggers, indexes, constraints, etc. are all
applied.

--
Rod Taylor <rbt [at] rbt [dot] ca>

Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
PGP Key: http://www.rbt.ca/rbtpub.asc

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Hallgren 2004-02-06 09:27:00 Advice regarding configuration parameters
Previous Message Christopher Kings-Lynne 2004-02-06 02:54:12 Re: COPY with INDEXES question

Browse pgsql-performance by date

  From Date Subject
Next Message Octavio Alvarez 2004-02-06 07:19:04 Seq scan on zero-parameters function
Previous Message Christopher Kings-Lynne 2004-02-06 02:54:12 Re: COPY with INDEXES question