Moshe Jacobson <moshe@xxxxxxxxxxxx> 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 -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general