Reusing return value from planner_rt_fetch

From: Zhihong Yu <zyu(at)yugabyte(dot)com>
To: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Reusing return value from planner_rt_fetch
Date: 2022-10-31 23:49:08
Message-ID: CALNJ-vS6NCiK+N-Y_4J-u2gG2UOSV93Y-EBRtUjsCmvPVc4nJw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,
I was reading examine_variable in src/backend/utils/adt/selfuncs.c

It seems we already have the rte coming out of the loop which starts on
line 5181.

Here is a patch which reuses the return value from `planner_rt_fetch`.

Please take a look.

Thanks

Attachment Content-Type Size
parent-rel-rte.patch application/octet-stream 1.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2022-10-31 23:51:14 Re: heavily contended lwlocks with long wait queues scale badly
Previous Message Jeff Davis 2022-10-31 23:36:54 Re: 16: Collation versioning and dependency helpers