From: Ragnar Hafstaư <gnari@simnet.is>
To: pankaj naug <pankajnaug@yahoo.com>
Cc: pgsql-sql@postgresql.org, Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: subselect query time and loops problem
Date: Sun, 10 Apr 2005 17:29:04 +0000
Message-ID: <1113154144.7444.49.camel@localhost.localdomain> (raw)
In-Reply-To: <20050410145429.78732.qmail@web30504.mail.mud.yahoo.com>
References: <20050410145429.78732.qmail@web30504.mail.mud.yahoo.com>
On Sun, 2005-04-10 at 07:54 -0700, pankaj naug wrote:
> [quoting Tom]
> >Evidently one has been analyzed much more recently than the other,
> because the estimated row counts are wildly different.
>
> Both the explain/analyse queries has been run at the same time.
in that case, is the data the same?
if so, what about STATISTICS settings for relevant columns?
just to make things clear, have both databases have been
ANALYZEd or VACUUM ANALYZEd recently ? (in case your
'explain/analyse' only refers to a EXPLAIN ANALYZE)
gnari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: gnari@simnet.is, pankajnaug@yahoo.com, tgl@sss.pgh.pa.us
Subject: Re: subselect query time and loops problem
In-Reply-To: <1113154144.7444.49.camel@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox