Re: Remove unused function parameters, part 2: replication - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: Remove unused function parameters, part 2: replication
Date
Msg-id CAA4eK1JBkYFRiMr0u296KZ9vD12LN77gD1Lyi3NQ5P=YCYU=Xg@mail.gmail.com
Whole thread Raw
In response to Remove unused function parameters, part 2: replication  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
List pgsql-hackers
On Fri, Nov 28, 2025 at 2:54 PM Bertrand Drouvot
<bertranddrouvot.pg@gmail.com> wrote:
>
> RetainDeadTuplesData *rdt_data in can_advance_nonremovable_xid(): 228c37086855
> RetainDeadTuplesData *rdt_data in resume_conflict_info_retention(): 0d48d393d465
>

All nearby static functions introduced for the same feature have
passed this RetainDeadTuplesData structure. At this point, it is not
used but it can be used in future. So, I'm not sure if it is a good
idea to remove it now. Added Hou-San to see if he has any opinion on
this.

> StringInfo s in apply_handle_origin(): 665d1fad99e7
>

All apply_handle_* functions passed the same parameter and that
function has some TODO as well, so again not sure if it is a good idea
to remove it.

--
With Regards,
Amit Kapila.



pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: Emitting JSON to file using COPY TO
Next
From: Amit Kapila
Date:
Subject: Re: Simplify code building the LR conflict messages