Re: [GENERAL] Query plan choice issue

2010-09-20 Thread Yaroslav Tykhiy
On 14/09/2010, at 10:37 AM, Yaroslav Tykhiy wrote: On 14/09/2010, at 12:41 AM, Tom Lane wrote: Yaroslav Tykhiy y...@barnet.com.au writes: [...] I think the major problem you're having is that the planner is completely clueless about the selectivity of the condition

Re: [GENERAL] Query plan choice issue

2010-09-13 Thread Yaroslav Tykhiy
Inhalt uebernehmen. From: y...@barnet.com.au To: pgsql-general@postgresql.org Subject: [GENERAL] Query plan choice issue Date: Mon, 13 Sep 2010 09:36:35 +1000 Hi all, I'm seeing a funny behaviour in Postgresql 8.4.4. Namely, a query can be executed using either of two different query plans

Re: [GENERAL] Query plan choice issue

2010-09-13 Thread Tom Lane
Yaroslav Tykhiy y...@barnet.com.au writes: - Bitmap Heap Scan on dbmail_headervalue v (cost=1409.82..221813.70 rows=2805 width=16) (actual time=28543.411..28623.623 rows=1 loops=1) Recheck Cond: (v.headername_id = n.id)

Re: [GENERAL] Query plan choice issue

2010-09-13 Thread Yaroslav Tykhiy
Hi Tom, On 14/09/2010, at 12:41 AM, Tom Lane wrote: Yaroslav Tykhiy y...@barnet.com.au writes: - Bitmap Heap Scan on dbmail_headervalue v (cost=1409.82..221813.70 rows=2805 width=16) (actual time=28543.411..28623.623 rows=1 loops=1) Recheck

[GENERAL] Query plan choice issue

2010-09-12 Thread Yaroslav Tykhiy
Hi all, I'm seeing a funny behaviour in Postgresql 8.4.4. Namely, a query can be executed using either of two different query plans, one taking a few milliseconds and the other, tens of seconds. The work_mem setting doesn't seem to affect it -- tried to increase or decrease it by 2 or

Re: [GENERAL] Query plan choice issue

2010-09-12 Thread Martin Gainty
entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. From: y...@barnet.com.au To: pgsql-general@postgresql.org Subject: [GENERAL] Query plan choice issue Date: Mon, 13 Sep 2010 09:36:35 +1000