pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: terry@greatgulfhomes.com
Cc: Postgres (E-mail) <pgsql-docs@postgresql.org>
Subject: Re: COPY optimization issue
Date: Thu, 13 Jun 2002 09:52:30 -0400
Message-ID: <19014.1023976350@sss.pgh.pa.us> (raw)
In-Reply-To: <003901c212dc$627a9120$2766f30a@development.greatgulfhomes.com>
References: <003901c212dc$627a9120$2766f30a@development.greatgulfhomes.com>

terry@greatgulfhomes.com writes:
> I currently just use the COPY command, but with over 800,000 records, this
> takes quite some time.
> Is there a faster way?

Drop and recreate indexes might help.  See
http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/populate.html

			regards, tom lane



view thread (2+ messages)

Message-ID: <19014.1023976350@sss.pgh.pa.us>
Permalink:  ../19014.1023976350@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19014.1023976350@sss.pgh.pa.us

 · 

reply

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-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, terry@greatgulfhomes.com
  Subject: Re: COPY optimization issue
  In-Reply-To: <19014.1023976350@sss.pgh.pa.us>

* 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