[PATCH] Tiny optmization or a bug? - Mailing list pgsql-hackers

From Ranier Vilela
Subject [PATCH] Tiny optmization or a bug?
Date
Msg-id MN2PR18MB2927996E85A27D90CA190EBAE3490@MN2PR18MB2927.namprd18.prod.outlook.com
Whole thread Raw
Responses Re: [PATCH] Tiny optmization or a bug?  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
List pgsql-hackers
Hi,
Hi,
Maybe this is a real bug.

The assignment has no effect, or forget dereferencing it?

Best regards.
Ranier Vilela

--- \dll\postgresql-12.0\a\backend\optimizer\plan\initsplan.c    Mon Sep 30 17:06:55 2019
+++ initsplan.c    Fri Nov 22 19:48:42 2019
@@ -1718,7 +1718,7 @@
                     relids =
                         get_relids_in_jointree((Node *) root->parse->jointree,
                                                false);
-                    qualscope = bms_copy(relids);
+                    bms_copy(relids);
                 }
             }
         }

Attachment

pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: RE: [BUG] (firsttupleslot)==NULL is redundant or is possible nulldereference?
Next
From: Tomas Vondra
Date:
Subject: Re: [BUG] (firsttupleslot)==NULL is redundant or is possible nulldereference?