pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vitalii Tymchyshyn <tivv00@gmail.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: 8.4/9.0 simple query performance regression
Date: Tue, 07 Jun 2011 11:19:29 +0300
Message-ID: <4DEDDF11.2020801@gmail.com> (raw)
In-Reply-To: <4DED4A87.7000901@agliodbs.com>
References: <4DED4A87.7000901@agliodbs.com>

07.06.11 00:45, Josh Berkus написав(ла):
> All,
>
> Just got this simple case off IRC today:
>
> 8.4.4
> This plan completes in 100ms:
>     Filter: (NOT (hashed SubPlan 1))

> 9.0.2
> This plan does not complete in 15 minutes or more:
>     Filter: (NOT (SubPlan 1))
"Hashed" is the key. Hashed subplans usually has much better performance.
You need to increase work_mem. I suppose it is in default state as you 
need not too much memory for hash of 70K integer values.
BTW: Why do it want to materialize a result of seq scan without filter. 
I can see no benefits (or is it more narrow rows?)

Best regards, Vitalii Tymchyshyn



view thread (3+ messages)

Message-ID: <4DEDDF11.2020801@gmail.com>
Permalink:  ../4DEDDF11.2020801@gmail.com/
Also on:    postgresql.org/message-id/4DEDDF11.2020801@gmail.com

 · 

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: tivv00@gmail.com, josh@agliodbs.com
  Subject: Re: 8.4/9.0 simple query performance regression
  In-Reply-To: <4DEDDF11.2020801@gmail.com>

* 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