Re: Strange Planner Issues

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Jake Stride <jake(at)omelett(dot)es>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Strange Planner Issues
Date: 2009-07-29 20:06:31
Message-ID: 407d949e0907291306x36041bc9k21fdab55c6794cc5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jul 29, 2009 at 8:01 PM, Jake Stride<jake(at)omelett(dot)es> wrote:
> Hi,
>
> I have 2 databases running on the same server. One is a dump of the
> other, however the query plans for the same query on the same tables
> in each database is wildly different and I cannot work out why.

>                                ->  Seq Scan on
> person_contact_methods e  (cost=0.00..3281.89 rows=1 width=8) (actual
> time=114.181..114.181 rows=0 loops=1)
>                                      Filter: (main AND
> ((contact)::text ~~* 'jake(at)omelett(dot)es'::text) AND (type =
> 'E'::bpchar))

>        ->  Seq Scan on person_contact_methods e  (cost=0.00..2942.06
> rows=1 width=8) (actual time=3.718..184.602 rows=772 loops=1)
>              Filter: (("type" = 'E'::bpchar) AND main AND
> ((contact)::text ~~* 'jake(at)omelett(dot)es'::text))

They don't look like the same data from here. One has no matching
records in this table and the other has over 700.
--
greg
http://mit.edu/~gsstark/resume.pdf

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Antonio José García Lagar 2009-07-29 21:05:36 Re: OID in $_TD->{new}/$_TD->{old}
Previous Message Jake Stride 2009-07-29 19:02:51 Re: Query optimisation and sorting on external merge