| From: | wenhui qiu <qiuwenhuifx(at)gmail(dot)com> |
|---|---|
| To: | |
| Cc: | Aleksander Alekseev <aleksander(at)tigerdata(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: [PATCH] Little refactoring of portalcmds.c |
| Date: | 2025-10-27 09:50:21 |
| Message-ID: | CAGjGUAJJCO0cYA297226epqwfj+UutGnYUigng9riApJo+pm=Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Aleksander Alekseev
> The proposed patch places some repetitive code in a helper function.
> The value of this change is arguably not that high but it makes the
> code a bit neater IMO.
I agree with your suggestion to refactor the duplicated code into a
function.
Thanks
On Mon, Oct 27, 2025 at 2:03 PM Quan Zongliang <quanzongliang(at)yeah(dot)net>
wrote:
>
>
> On 10/8/25 10:02 PM, Aleksander Alekseev wrote:
> > Hi,
> >
> > The proposed patch places some repetitive code in a helper function.
> > The value of this change is arguably not that high but it makes the
> > code a bit neater IMO.
> >
>
> It also reduces the ease of reading the code.
> Just add a function for a single if statement. I don't think it's
> necessary.
>
> Regards,
> Quan Zongliang
>
>
>
>
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | Japin Li | 2025-10-27 09:22:13 | Re: Improve pg_sync_replication_slots() to wait for primary to advance |