Re: Can you spot the difference?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Moshe Jacobson <moshe(at)neadwerx(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can you spot the difference?
Date: 2013-04-16 19:29:58
Message-ID: 6898.1366140598@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Moshe Jacobson <moshe(at)neadwerx(dot)com> writes:
> My problem is that the exact same simple query performs great in the
> original database ("ises") and dismally in the copy database
> ("ises_coelacanth"). The problem is that in ises, it uses an index scan,
> but in ises_coelacanth it uses a sequential scan:

The rowcount estimates are much further away from reality in the second
database. Either you forgot to run ANALYZE at all, or the stats target
settings are different (and lower) in the second DB.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Moshe Jacobson 2013-04-16 19:32:34 Re: Can you spot the difference?
Previous Message Adrian Klaver 2013-04-16 19:29:55 Re: Can you spot the difference?