Re: Pre-sorting COPY FROM input - Mailing list pgsql-performance

From Heikki Linnakangas
Subject Re: Pre-sorting COPY FROM input
Date
Msg-id 514367F2.1080402@vmware.com
Whole thread Raw
In response to Pre-sorting COPY FROM input  (Florian Weimer <fw@deneb.enyo.de>)
List pgsql-performance
On 15.03.2013 19:31, Florian Weimer wrote:
> Does it make sense to pre-sort COPY FROM input to produce long runs of
> increasing values of an indexed column, or does PostgreSQL perform
> this optimization on its own?

PostgreSQL doesn't do that sort of an optimization itself, so yeah, if
the random I/O of index updates is a problem, pre-sorting the input
should help.

- Heikki


pgsql-performance by date:

Previous
From: Rick Otten
Date:
Subject: Re: New server setup
Next
From: Bruce Momjian
Date:
Subject: Re: New server setup