Fix an unnecessary cast calling elog in ExecHashJoinImpl

From: Tender Wang <tndrwang(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Fix an unnecessary cast calling elog in ExecHashJoinImpl
Date: 2025-08-30 06:09:27
Message-ID: CAHewXN=s2thWwfWhugDLUhAn-UTtBPYLe_pPBfcH-DJ4PjMzpQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While debugging the HashJoin codes, I noticed below codes
in ExecHashJoinImpl():

elog(ERROR, "unrecognized hashjoin state: %d",
(int) node->hj_JoinState);

The type of hj_JoinState is already int, so the cast seems unnecessary.
So I remove it in the attached patch.

--
Thanks,
Tender Wang

Attachment Content-Type Size
0001-Fix-an-unnecessary-cast-calling-elog-in-ExecHashJoin.patch text/plain 754 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Shlok Kyal 2025-08-30 06:13:42 Re: Issue with logical replication slot during switchover
Previous Message Nisha Moond 2025-08-30 05:12:56 Re: Parallel Apply