Re: Sequence vs. Index Scan

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Sequence vs. Index Scan
Date: 2007-05-05 21:30:09
Message-ID: 20070505213009.GA22573@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sat, May 05, 2007 at 04:05:52PM -0500, Aaron Bono wrote:
> I have two schemas, both with the exact same DDL. One performs great and

Do they have the same data?

> I have
> checked and there IS an index, specifically a primary key index, on the
> branch_id in both schemas so I cannot figure out why the optimizer is
> looking at these differently. In fact, the table the branch_id comes from
> has the exact same indices and foreign keys on both schemas.

Different data? Different statistics? Different numbers of
(possibly dead) rows?

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
Everything that happens in the world happens at some place.
--Jane Jacobs

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Aaron Bono 2007-05-05 22:00:53 Re: Sequence vs. Index Scan
Previous Message Aaron Bono 2007-05-05 21:05:52 Sequence vs. Index Scan