From: gzh <gzhcoder@126.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re:Re: Different execution plan between PostgreSQL 8.2 and 12.5
Date: Thu, 18 Aug 2022 20:07:47 +0800 (CST)
Message-ID: <19dcd2b3.679d.182b0da37c2.Coremail.gzhcoder@126.com> (raw)
In-Reply-To: <ac341640-345f-2848-bcd9-ac814787ff02@aklaver.com>
References: <6614e60.204d.182aee5aff0.Coremail.gzhcoder@126.com>
<ac341640-345f-2848-bcd9-ac814787ff02@aklaver.com>
Dear Adrian,
Thanks for your reply.
>Did you run ANALYZE on the 12.5 server after restoring the data to it?
No, I did not run ANALYZE on the 12.5 server after restoring the data.
When I change the select clause like this ( crew_base.crewid → count(*) ), I can retrieve the number of data rows.
Please refer to my previous reply for more information.
At 2022-08-18 12:18:31, "Adrian Klaver" <adrian.klaver@aklaver.com> wrote:
>On 8/17/22 20:01, gzh wrote:
>> Hi,
>>
>>
>> I have had a Perl Website working for 7 years and have had no problems
>>
>> until a few weeks ago I replaced my database server with a newer one.
>
>Did you run ANALYZE on the 12.5 server after restoring the data to it?
>
>
>>
>> gzh
>>
>>
>
>
>--
>Adrian Klaver
>adrian.klaver@aklaver.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: gzhcoder@126.com, adrian.klaver@aklaver.com
Subject: Re: Different execution plan between PostgreSQL 8.2 and 12.5
In-Reply-To: <19dcd2b3.679d.182b0da37c2.Coremail.gzhcoder@126.com>
References: <6614e60.204d.182aee5aff0.Coremail.gzhcoder@126.com> <ac341640-345f-2848-bcd9-ac814787ff02@aklaver.com> <19dcd2b3.679d.182b0da37c2.Coremail.gzhcoder@126.com>
* 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