Re: good experience with performance in 8.2 for multi column indexes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Enke <michael(dot)enke(at)wincor-nixdorf(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, psql-performance(at)postgresql(dot)org
Subject: Re: good experience with performance in 8.2 for multi column indexes
Date: 2008-04-18 14:43:59
Message-ID: 9717.1208529839@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Enke <michael(dot)enke(at)wincor-nixdorf(dot)com> writes:
> For my setup, in 8.1 a delete query which deletes 200000 entries depending on rows in another table
> runs about 7h, in 8.2 (and later) it runs 9s!

If those rowcount estimates are even close to accurate, there's no
reason for the hash plan to be so much faster than the indexscan.
I think the real issue is somewhere else. Do you have any triggers
or foreign keys on this table?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dave 2008-04-18 14:48:07 Re: How do I measure user disk usage on Postgresql table?
Previous Message Richard Huxton 2008-04-18 12:50:38 Re: How do I measure user disk usage on Postgresql table?