Minor refactor of the code in ExecScanExtended()

From: cca5507 <cca5507(at)qq(dot)com>
To: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Minor refactor of the code in ExecScanExtended()
Date: 2025-11-07 14:00:15
Message-ID: tencent_521639454FA60ECFE200D82E2F54AAB0BA05@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

The current code:

      if (!qual &amp;&amp; !projInfo)
      {
            ResetExprContext(econtext);
            return ExecScanFetch(node, epqstate, accessMtd, recheckMtd);
      }

      ResetExprContext(econtext);

The following format might be simpler:

      ResetExprContext(econtext);

      if (!qual &amp;&amp; !projInfo)
            return ExecScanFetch(node, epqstate, accessMtd, recheckMtd);

Attach a patch to do this.

--
Regards,
ChangAo Chen

Attachment Content-Type Size
v1-0001-Minor-refactor-of-the-code-in-ExecScanExtended.patch application/octet-stream 1.3 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Álvaro Herrera 2025-11-07 14:14:31 Re: LISTEN/NOTIFY bug: VACUUM sets frozenxid past a xid in async queue
Previous Message Xuneng Zhou 2025-11-07 13:48:23 Re: Improve read_local_xlog_page_guts by replacing polling with latch-based waiting