Re: Same query, same data different plan - Mailing list pgsql-general

From Tom Lane
Subject Re: Same query, same data different plan
Date
Msg-id 4073393.1665413623@sss.pgh.pa.us
Whole thread Raw
In response to Re: Same query, same data different plan  (Kostas Papadopoulos <kostas@methodosit.com.cy>)
Responses Re: Same query, same data different plan
List pgsql-general
Kostas Papadopoulos <kostas@methodosit.com.cy> writes:
> I cannot see how it can be configuration since the two databases are in the same
> Postgres instance.

There is such a thing as ALTER DATABASE ... SET to install different
settings at the per-database level.

In general, the answer to your question is that the databases are
*not* identical.  You just haven't figured out how yet.  I'm wondering
if it has something to do with the dump/reload having compacted out
bloat in the tables or indexes, causing cost estimates to change.

            regards, tom lane



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Same query, same data different plan
Next
From: Kostas Papadopoulos
Date:
Subject: Re: Same query, same data different plan