Re: Performance degradation 8.4 -> 9.1

From: Joseph S <jks(at)selectacast(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Performance degradation 8.4 -> 9.1
Date: 2011-11-20 06:35:36
Message-ID: 4EC89FB8.90104@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


More info:

I upgraded the database from 8.4 to 9.1 using pg_upgrade, so I have no
way of running explain using 8.4.

I don't want to do an EXPLAIN ANALYZE because it would bog down the
server for too long. I know what it is doing, it's doing a seqscan.

This is a table with ~ 5.5 million rows and is ~100G in size. There are
4 indexes on this table, including one that matches what this query
needs exactly. Pg finds this index, but goes with the other alternative
(2), even though it thinks the index alternative (1) will be faster. I
don't even know what that means. I've never seen an EXPLAIN like that
before the 9.1 upgrade. I searched for "alternative" in the docs but
didn't find anything.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tomas Vondra 2011-11-20 06:42:28 Re: Installed. Now what?
Previous Message Phoenix Kiula 2011-11-20 06:32:44 Re: Installed. Now what?