pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kaloyan Iliev Iliev <kaloyan@digsys.bg>
To: pgsql-performance@postgresql.org
Subject: Slow query after upgrade from 8.2 to 8.4
Date: Thu, 08 Dec 2011 19:29:24 +0200
Message-ID: <4EE0F3F4.8040909@digsys.bg> (raw)

Hello All.
We recently upgrade our server from PG8.2 to 8.4.
Our current version is:
database=> SELECT version();
                                                      
version                                                      
--------------------------------------------------------------------------------------------------------------------
 PostgreSQL 8.4.8 on amd64-portbld-freebsd8.2, compiled by GCC cc (GCC) 
4.2.2 20070831 prerelease [FreeBSD], 64-bit
(1 row)
 
I read and setup most of the tuning advices.
Since the upgrade we have some very complicated reports that start 
working too slow. Form tens of seconds to 1 hours.
I execute vacuum analyze before start the query.

Here I will post explain analyze. If you think it is necessary I will 
post the exact query:
http://explain.depesz.com/s/J0O

I think the planner didn't choose the best plan. I will try to I rewrite 
the query and set join_collapse_limit to 1 and see what will happen. 
Meanwhile any suggestions are welcome.

Best regards and thanks in advance for the help.
 Kaloyan Iliev



view thread (7+ messages)  latest in thread

Message-ID: <4EE0F3F4.8040909@digsys.bg>
Permalink:  ../4EE0F3F4.8040909@digsys.bg/
Also on:    postgresql.org/message-id/4EE0F3F4.8040909@digsys.bg

 · 

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: kaloyan@digsys.bg
  Subject: Re: Slow query after upgrade from 8.2 to 8.4
  In-Reply-To: <4EE0F3F4.8040909@digsys.bg>

* 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