From: Rod Taylor <rbt@rbt.ca>
To: Slavisa Garic <Slavisa.Garic@infotech.monash.edu.au>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: COPY with INDEXES question
Date: Thu, 05 Feb 2004 21:55:28 -0500
Message-ID: <1076036127.308.586.camel@jester> (raw)
In-Reply-To: <Pine.GSO.4.10.10402061143430.29801-100000@bruce.csse.monash.edu.au>
References: <Pine.GSO.4.10.10402061143430.29801-100000@bruce.csse.monash.edu.au>
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.ascAttachments:
signature.asc (application/pgp-signature, 186B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: rbt@rbt.ca, Slavisa.Garic@infotech.monash.edu.au
Subject: Re: COPY with INDEXES question
In-Reply-To: <1076036127.308.586.camel@jester>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox