From: | Kevin Grittner <kgrittn(at)ymail(dot)com> |
---|---|
To: | "Carson, Leonard" <lcarson(at)sdsc(dot)edu>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: views much slower in 9.3 than 8.4 |
Date: | 2015-03-18 17:16:20 |
Message-ID: | 1043199376.1274006.1426698980738.JavaMail.yahoo@mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
"Carson, Leonard" <lcarson(at)sdsc(dot)edu> wrote:
> While acknowledging that nested loops and sequential table scans
> account for 85% of the execution time which suggests that a
> better query may be needed, why would the same query run in
> seconds on 8.x but take minutes on 9.x?
First, please show the output of this from both servers:
SELECT version();
SELECT name, current_setting(name), source
FROM pg_settings
WHERE source NOT IN ('default', 'override');
Then, for your newer server, please follow the steps outlined here:
https://wiki.postgresql.org/wiki/SlowQueryQuestions
My first guess would be that at some point your costing parameters
were tuned on the old system, but have not yet been tuned on the
new one. Rather than blindly using the old settings for the new
server, it would be good to see the information requested on the
above-cited page to determine good settings for the new server.
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Vivekanand Joshi | 2015-03-18 17:31:15 | Re: Performance issues |
Previous Message | Carson, Leonard | 2015-03-18 17:00:42 | views much slower in 9.3 than 8.4 |