Re: Query taking long time

From: Venkata Balaji Nagothi <vbnpgc(at)gmail(dot)com>
To: acanada <acanada(at)cnio(dot)es>
Cc: Evgeny Shishkin <itparanoia(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Query taking long time
Date: 2014-03-23 06:10:44
Message-ID: CAHBAh5sX72X68R+guufShz4mJBMiv9oMVzc3-VNYyp6+sDioZw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Mar 20, 2014 at 9:17 PM, acanada <acanada(at)cnio(dot)es> wrote:

> Hello,
>
> New server postgres version is 9.3. I'm not sure if I collected latest
> statistics after migration, if you mean if the current_settings or analyze
> queries that I posted were collected after migration... yes (notice that
> there are analyze query before migration and after migration, maybe I
> didn't illustrate right)
> Sorry for that. Reading the statistics collector manual, I see there are
> plenty of parameters, and I'm not sure which one of them are you interested
> in, or if there's a query to collect them...
>

Hi Andres,

If we do not have statistics, its hard to arrive at any conclusion
regarding performance. The cost numbers we get without statistics are not
accurate.

Also, you have migrated across 5 major versions since 8.3. It is very
important to have latest statistics in place.

Please perform VACUUM FULL and ANALYZE of the database.

Please post the EXPLAIN plan after that.

Thanks & Regards,

Venkata Balaji N
Fujitsu Australia

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2014-03-23 06:40:01 Re: Suboptimal query plan when using expensive BCRYPT functions
Previous Message bricklen 2014-03-23 03:56:09 Re: Suboptimal query plan when using expensive BCRYPT functions