Re: postgres 7.4 vs 8.x redux: query plans

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Alex Deucher" <alexdeucher(at)gmail(dot)com>
Cc: "PostgreSQL Performance" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: postgres 7.4 vs 8.x redux: query plans
Date: 2007-04-03 05:28:03
Message-ID: 17931.1175578083@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Alex Deucher" <alexdeucher(at)gmail(dot)com> writes:
> and here are the query plans referenced in my last email (apologies if
> you get these twice, they didn't seem to go through the first time,
> perhaps due to size?). I cut out the longer ones.

The first case looks a whole lot like 8.2 does not think it can use an
index for LIKE, which suggests strongly that you've used the wrong
locale in the 8.2 installation (ie, not C).

The second pair of plans may look a lot different but in principle they
ought to perform pretty similarly. I think the performance differential
may at root be that string comparison is way more expensive in the 8.2
installation, which again is possible if you went from C locale to some
other locale.

In short: check out "show lc_collate" in both installations.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Jean Arnaud 2007-04-03 14:12:20 Cache hit ratio
Previous Message Alex Deucher 2007-04-03 05:09:49 postgres 7.4 vs 8.x redux: query plans