Re: Replacing lfirst() with lfirst_node() appropriately in planner.c
Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
From: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
To: Jeevan Chalke <jeevan.chalke@enterprisedb.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2017-09-05T11:57:20Z
Lists: pgsql-hackers
Attachments
- 0001-Use-lfirst_node-instead-of-lfirst-wherever-suitable-_v2.patch (text/x-patch) patch v2-0001
- 0002-Use-linitial_node-instead-of-linitial-wherever-suita_v2.patch (text/x-patch) patch v2-0002
On Tue, Sep 5, 2017 at 4:02 PM, Jeevan Chalke <jeevan.chalke@enterprisedb.com> wrote: > Hi, > > lfirst_node() changes are missing for List node type and I was thinking > about adding those. But it looks like we cannot do so as List can be a > T_List, T_IntList, or T_OidList. So I am OK with that. Thanks for investigating the case of T_List. > > Apart from this, changes look good to me. Everything works fine. > > As we are now doing it for lfirst(), can we also do this for linitial()? > I did not find any usage for lsecond(), lthird(), lfourth() and llast() > though. > > Attached patch for replacing linitial() with linital_node() appropriately in > planner.c > Ok. The patch looks good to me. It compiles and make check passes. Here are both the patches rebased on the latest sources. I am marking this commitfest entry as "ready for committer".
Commits
-
Use lfirst_node() and linitial_node() where appropriate in planner.c.
- 6e427aa4e5f3 11.0 landed