pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vlad Arkhipov <arhipov@dc.baikal.ru>
To: Albe Laurenz <laurenz.albe@wien.gv.at>
Cc: pgsql-performance@postgresql.org
Subject: Re: Optimizer's issue
Date: Thu, 24 Apr 2008 18:47:37 +0900
Message-ID: <48105739.30900@dc.baikal.ru> (raw)
In-Reply-To: <D960CB61B694CF459DCFB4B0128514C202043E0F@exadv11.host.magwien.gv.at>
References: <480FDF0E.3000909@dc.baikal.ru>
	<D960CB61B694CF459DCFB4B0128514C202043E0F@exadv11.host.magwien.gv.at>

Albe Laurenz пишет:
> Vlad Arkhipov wrote:
>   
>> I found strange issue in very simple query.
>>     
>
> You forgot to mention what your problem is.
>
> Yours,
> Laurenz Albe
>   
It was written below in my first post:
"These queries are part of big query and optimizer put them on the leaf
of query tree, so rows miscount causes a real problem. "
actual rows count for the first query is 294, estimate - 11; for the
second -- 283 and 0. Postgres tries to use nested loops when it should
use merge/hash join and vice versa.




view thread (6+ messages)  latest in thread

Message-ID: <48105739.30900@dc.baikal.ru>
Permalink:  ../48105739.30900@dc.baikal.ru/
Also on:    postgresql.org/message-id/48105739.30900@dc.baikal.ru

 · 

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: arhipov@dc.baikal.ru, laurenz.albe@wien.gv.at
  Subject: Re: Optimizer's issue
  In-Reply-To: <48105739.30900@dc.baikal.ru>

* 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