[PATCH] Tiny optmization or is a bug?

From: Ranier Vilela <ranier_gyn(at)hotmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH] Tiny optmization or is a bug?
Date: 2019-11-22 21:51:50
Message-ID: MN2PR18MB292727E0CD0F7F220C4B07F9E3490@MN2PR18MB2927.namprd18.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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\commands\lockcmds.c Mon Sep 30 17:06:55 2019
+++ lockcmds.c Fri Nov 22 18:45:01 2019
@@ -285,7 +285,7 @@

LockViewRecurse_walker((Node *) viewquery, &context);

- ancestor_views = list_delete_oid(ancestor_views, reloid);
+ list_delete_oid(ancestor_views, reloid);

table_close(view, NoLock);
}

Attachment Content-Type Size
lockcmds.c.patch application/octet-stream 348 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ranier Vilela 2019-11-22 21:58:55 [PATCH] Tiny optimization.
Previous Message Ranier Vilela 2019-11-22 21:41:44 [PATCH] Tiny optmization.