pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Francisco Reyes <lists@stringsutils.com>
Cc: Pgsql performance <pgsql-performance@postgresql.org>
Subject: Re: Regression: 8.3 2 seconds -> 8.4 100+ seconds
Date: Wed, 27 Oct 2010 12:09:46 -0400
Message-ID: <21877.1288195786@sss.pgh.pa.us> (raw)
In-Reply-To: <cone.1288183283.263738.5695.1000@shelca>
References: <cone.1288183283.263738.5695.1000@shelca>

Francisco Reyes <lists@stringsutils.com> writes:
> CentOS 5.4 and 5.5
> Query
> SELECT sum(usramt) as givensum,
>               sum (case when usedid > 0 then usramt else 0 end) as usedsum
>               FROM argrades
>               WHERE userstatus in (5) and
>               membid in (select distinct members.membid from members, cards
> where members.membid = cards.membid and members.membershipid = 40 and useraccount in
> ( select useraccount from cards where membid in
> (select membid from members where commonid = 3594)))

Please provide a self-contained test case for this.  In testing here,
8.4 can still figure out that it ought to use an indexscan against the
large table ... so there is some aspect of your tables that you're not
showing us.

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <21877.1288195786@sss.pgh.pa.us>
Permalink:  ../21877.1288195786@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21877.1288195786@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, lists@stringsutils.com
  Subject: Re: Regression: 8.3 2 seconds -> 8.4 100+ seconds
  In-Reply-To: <21877.1288195786@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