Re: COPY Performance

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Hans Zaunere" <lists(at)zaunere(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: COPY Performance
Date: 2008-05-04 23:41:01
Message-ID: 12739.1209944461@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Hans Zaunere" <lists(at)zaunere(dot)com> writes:
> We're using a statement like this to dump between 500K and >5 million rows.

> COPY(SELECT SomeID FROM SomeTable WHERE SomeColumn > '0')
> TO '/dev/shm/SomeFile.csv'

> Upon first run, this operation can take several minutes. Upon second run,
> it will be complete in generally well under a minute.

Hmmm ... define "first" versus "second". What do you do to return it to
the slow state?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Ribe 2008-05-04 23:55:28 Race condition with notifications
Previous Message Hans Zaunere 2008-05-04 23:11:35 COPY Performance