Skip site navigation (1) Skip section navigation (2)

Re: Possible to improve query plan?

From: Jeremy Palmer <JPalmer(at)linz(dot)govt(dot)nz>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-performance(at)postgresql(dot)org"<pgsql-performance(at)postgresql(dot)org>, "andy(at)squeakycode(dot)net"<andy(at)squeakycode(dot)net>
Subject: Re: Possible to improve query plan?
Date: 2011-01-25 00:24:48
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Thanks heaps for the advice. I will do some benchmarks to see how long it takes to cluster all of the database tables.


-----Original Message-----
From: Kevin Grittner [mailto:Kevin(dot)Grittner(at)wicourts(dot)gov] 
Sent: Tuesday, 25 January 2011 1:02 p.m.
To: Jeremy Palmer; Tom Lane
Cc: Robert Haas; pgsql-performance(at)postgresql(dot)org; andy(at)squeakycode(dot)net
Subject: RE: [PERFORM] Possible to improve query plan?

Jeremy Palmer <JPalmer(at)linz(dot)govt(dot)nz> wrote:
> My only question is how often will I need to re-cluster the
> table, because it comes at quite a cost.
I probably should have mentioned that the CLUSTER will run faster if
the data is already mostly in the right sequence.  You'll be doing a
nearly sequential pass over the heap, which should minimize seek
time, especially if the OS notices the pattern and starts doing
sequential read-ahead.

This message contains information, which is confidential and may be subject to legal privilege. 
If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message.
If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info(at)linz(dot)govt(dot)nz) and destroy the original message.
LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ.

Thank you.

In response to

pgsql-performance by date

Next:From: Josh BerkusDate: 2011-01-25 02:26:16
Subject: Bloat issue on 8.3; autovac ignores HOT page splits?
Previous:From: Kevin GrittnerDate: 2011-01-25 00:01:31
Subject: Re: Possible to improve query plan?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group