Re: Remove extraneous break condition in logical slot advance function

2023-10-22 Thread Michael Paquier
On Sun, Oct 22, 2023 at 11:59:00PM +0530, Bharath Rupireddy wrote: > AFAICS, there's no correctness argument for breaking before CFI. As > rightly said, CFIs can happen before the break condition either down > inside LogicalDecodingProcessRecord or XLogReadRecord (page_read > callbacks for instance

Re: Remove extraneous break condition in logical slot advance function

2023-10-22 Thread Bharath Rupireddy
On Sat, Oct 21, 2023 at 11:40 PM Tom Lane wrote: > > Gurjeet Singh writes: > > On Fri, Oct 20, 2023 at 7:30 PM Bharath Rupireddy > > wrote: > >> There exists an extraneous break condition in > >> pg_logical_replication_slot_advance(). When the end of WAL or moveto > >> LSN is reached, the main w

Re: Remove extraneous break condition in logical slot advance function

2023-10-21 Thread Tom Lane
Gurjeet Singh writes: > On Fri, Oct 20, 2023 at 7:30 PM Bharath Rupireddy > wrote: >> There exists an extraneous break condition in >> pg_logical_replication_slot_advance(). When the end of WAL or moveto >> LSN is reached, the main while condition helps to exit the loop, so no >> separate break c

Re: Remove extraneous break condition in logical slot advance function

2023-10-21 Thread Gurjeet Singh
On Fri, Oct 20, 2023 at 7:30 PM Bharath Rupireddy wrote: > > Hi, > > There exists an extraneous break condition in > pg_logical_replication_slot_advance(). When the end of WAL or moveto > LSN is reached, the main while condition helps to exit the loop, so no > separate break condition is needed. A