From: Tom Lane <tgl@sss.pgh.pa.us>
To: pbj@cmicdo.com <pbj@cmicdo.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Detecting mis-planning of repeated application of a projection step
Date: Wed, 13 Oct 2021 11:42:32 -0400
Message-ID: <653389.1634139752@sss.pgh.pa.us> (raw)
In-Reply-To: <875836830.1265621.1634139297776@mail.yahoo.com>
References: <875836830.1265621.1634139297776.ref@mail.yahoo.com>
<875836830.1265621.1634139297776@mail.yahoo.com>
"pbj@cmicdo.com" <pbj@cmicdo.com> writes:
> The 13.4 release notes document the following:
> > Fix mis-planning of repeated application of a projection step (Tom Lane)
> >
> > The planner could create an incorrect plan in cases where two
> > ProjectionPaths were stacked on top of each other. The only known
> > way to trigger that situation involves parallel sort operations,
> > but there may be other instances. The result would be crashes or
> > incorrect query results. Disclosure of server memory contents is also
> > possible. (CVE-2021-3677)
> >
> Is there a way to detect if this is happening and could this problem cause very bad, but successful, plans to be created? We are seeing 13.3 create horrible plans for some queries, where 13.4 creates great plans for the same queries.
No, whatever you're seeing, it was not this particular bug.
regards, tom lane
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: tgl@sss.pgh.pa.us, pbj@cmicdo.com
Subject: Re: Detecting mis-planning of repeated application of a projection step
In-Reply-To: <653389.1634139752@sss.pgh.pa.us>
References: <875836830.1265621.1634139297776.ref@mail.yahoo.com> <875836830.1265621.1634139297776@mail.yahoo.com> <653389.1634139752@sss.pgh.pa.us>
* 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