Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1magHq-00059O-80 for pgsql-general@arkaria.postgresql.org; Wed, 13 Oct 2021 15:35:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1magHo-0000Ey-TM for pgsql-general@arkaria.postgresql.org; Wed, 13 Oct 2021 15:35:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1magHo-000077-0x for pgsql-general@lists.postgresql.org; Wed, 13 Oct 2021 15:35:20 +0000 Received: from sonic306-8.consmr.mail.bf2.yahoo.com ([74.6.132.47]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1magHl-0001Jv-NR for pgsql-general@lists.postgresql.org; Wed, 13 Oct 2021 15:35:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634139315; bh=u+g/i5cGRK27jGMIw8VseHWSzRf6GkYFGwlHj3fI8L4=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=I0mmNKIJ1c7BLbwOqVg/9XgFJ/Qa1UhrhxZ6MVAy+QUNjs0vaLSHtsGaK87xMhQru2R8aQOKAlJjiEDotNnvNj7zIDQjBQMjnXiYhbSVyjqZ6XogZxTmWmEFk5J4rvsBSJP1ua/hWqqs5+KGS3AwRZfOe7YOpXVgnxaR1rYKMqfMHCxUdt/kyRzgMyJX3RMNBtgT1++9p/+3dO2kO+fxNnS+MUuHFDmdNA5JU2lsxNIUFXJIwWLvt8EzrIjF+zvR5F0lfFVK4eZ9JLeYFHCrgPqD+5nkS04GuvPnRxO0D+unstSmT+FdImwJQ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IyVjGoJCVVaNaUBKFe_2NhwTsyoCaM2_kGCS3ic YUGZlkErfjEzrAyAp4WCKnmqYTbJM_3gkTmj.ssQLhwZ2M9XQTFjiIJ5NIj_jLVmGCxhF3fw.0BC y3_UbgGs3z_p52AeEcbf3QkJSKa7HuP3d68j5HBsMcvFu.l5DEhpzTsHLlBjbpmD1nTuMjIe.Y1C .Nqfxsa2fujpm1EfkfPHotU9.0RQv8Qzph.V8hYJlHdJOBEQnNZXW0SoAtHhvd2UNGPIQz8nkJFM N4mBnTtlnbePVL0AbzFSldmRLbyUOnOOBxTf1okKnd4nZF7uKWjEllaPufndwjTg1242Mme7tVI1 eP286wyUml1hf0UC0ZK1oOEaHNevGE8qbR3Jyv2TsEs2NE9_ScUeZWwk3ng117szQxpshCVSGq8v RTAsZW2s1nwq9XyAHCRSTdCM8tWp8m3vaU54rkLKrKSrVYD.ioYJ3Dapi9x4TmpD1i6POqo4dLC8 c9QNCe1LzV8hGalYJQfLKDraEmFh2eduzO_Cnp34b6hKIAp8Y2_t_W2CtaDqWQO3kEQGKyGEHPXd E04zsKsEWmCQuzYDAwXejvk60s6Pzt0gf2d6.QjfqBuqPoBGNAI4aWGU- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.bf2.yahoo.com with HTTP; Wed, 13 Oct 2021 15:35:15 +0000 Date: Wed, 13 Oct 2021 15:34:57 +0000 (UTC) From: "pbj@cmicdo.com" To: "pgsql-general@lists.postgresql.org" Message-ID: <875836830.1265621.1634139297776@mail.yahoo.com> Subject: Detecting mis-planning of repeated application of a projection step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <875836830.1265621.1634139297776.ref@mail.yahoo.com> X-Mailer: WebService/1.1.19116 YMailNorrin Content-Length: 989 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The 13.4 release notes document the following: =C2=A0> Fix mis-planning of repeated application of a projection step (Tom = Lane) =C2=A0> =C2=A0>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 The planner could create an incorrect= plan in cases where two =C2=A0>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ProjectionPaths were stacked on top o= f each other. The only known =C2=A0>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 way to trigger that situation involve= s parallel sort operations, =C2=A0>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 but there may be other instances. The= result would be crashes or =C2=A0>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 incorrect query results. Disclosure o= f server memory contents is also =C2=A0>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 possible. (CVE-2021-3677) =C2=A0> Is there a way to detect if this is happening and could this problem cause = very bad, but successful, plans to be created?=C2=A0 We are seeing 13.3 cre= ate horrible plans for some queries, where 13.4 creates great plans for the= same queries. PJ