Avoid using lcons and list_delete_first in plan_union_children()

From: "Hou, Zhijie" <houzj(dot)fnst(at)cn(dot)fujitsu(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Avoid using lcons and list_delete_first in plan_union_children()
Date: 2020-12-01 10:52:11
Message-ID: 43b51f3881e14bf5bfe084699d8cc5c6@G08CNEXMBPEKD05.g08.fujitsu.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

In function plan_union_children(),
I found the lcons and list_delete_first here is easy to be replaced by lappend and list_delete_last.

And I also found a previous commit do similar thing, so I try to improve this one.

Previous commit:
d97b714a219959a50f9e7b37ded674f5132f93f3

Best regards,
houzj

Attachment Content-Type Size
0001-Avoid-using-lcons-and-list_delete_first.patch application/octet-stream 1.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2020-12-01 11:20:56 Re: [HACKERS] Custom compression methods
Previous Message Amit Kapila 2020-12-01 10:13:01 Re: PATCH: logical_work_mem and logical streaming of large in-progress transactions