pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: Greg Smith <greg@2ndquadrant.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: : Performance Improvement Strategy
Date: Wed, 05 Oct 2011 14:15:54 -0400
Message-ID: <23412.1317838554@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOR=d=1sfgPk0z2zwTqEMapu+5=VHWAB+o9azHs-LytXgsWNnQ@mail.gmail.com>
References: <CAFrxt0j5UysgEU8hQxZ_mGbdex8Ev-bGdGsdpOGYYSO-jO24Fw@mail.gmail.com>
	<4E79E091.2030401@peak6.com>
	<4E79A6FF0200002500041506@gw.wicourts.gov>
	<CAFrxt0hikCw7=O=v-yyQxvHog=kGZeTTTsgAauY8dktEDzOf0A@mail.gmail.com>
	<4E7A259F.9060401@2ndQuadrant.com>
	<CAOR=d=1sfgPk0z2zwTqEMapu+5=VHWAB+o9azHs-LytXgsWNnQ@mail.gmail.com>

Scott Marlowe <scott.marlowe@gmail.com> writes:
> It used to be that cluster on a very randomly ordered table was much
> slower than doing something like select * into newtable from oldtable
> order by col1, col2;  Is that still the case in 9.0/9.1?

Fixed in 9.1, per release notes:

	* Allow CLUSTER to sort the table rather than scanning the index when it seems likely to be cheaper (Leonardo Francalanci)

			regards, tom lane



view thread (27+ messages)  latest in thread

Message-ID: <23412.1317838554@sss.pgh.pa.us>
Permalink:  ../23412.1317838554@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23412.1317838554@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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, scott.marlowe@gmail.com, greg@2ndquadrant.com
  Subject: Re: : Performance Improvement Strategy
  In-Reply-To: <23412.1317838554@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