pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Detecting mis-planning of repeated application of a projection step
2+ messages / 2 participants
[nested] [flat]

* Detecting mis-planning of repeated application of a projection step
@ 2021-10-13 15:34 pbj@cmicdo.com <pbj@cmicdo.com>
  2021-10-13 15:42 ` Re: Detecting mis-planning of repeated application of a projection step Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: pbj@cmicdo.com @ 2021-10-13 15:34 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

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.

PJ





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Detecting mis-planning of repeated application of a projection step
  2021-10-13 15:34 Detecting mis-planning of repeated application of a projection step pbj@cmicdo.com <pbj@cmicdo.com>
@ 2021-10-13 15:42 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2021-10-13 15:42 UTC (permalink / raw)
  To: pbj@cmicdo.com <pbj@cmicdo.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

"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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-10-13 15:42 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 15:34 Detecting mis-planning of repeated application of a projection step pbj@cmicdo.com <pbj@cmicdo.com>
2021-10-13 15:42 ` Tom Lane <tgl@sss.pgh.pa.us>

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