Re: Add new for_each macros for iterating over a List that do not require ListCell pointer - Mailing list pgsql-hackers

From Jelte Fennema
Subject Re: Add new for_each macros for iterating over a List that do not require ListCell pointer
Date
Msg-id CAGECzQQG7VX3LU4ccwygSeoVSM+UdSr+O8Mt40f0WEuoWV+ohg@mail.gmail.com
Whole thread Raw
In response to Re: Add new for_each macros for iterating over a List that do not require ListCell pointer  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: Add new for_each macros for iterating over a List that do not require ListCell pointer
Re: Add new for_each macros for iterating over a List that do not require ListCell pointer
List pgsql-hackers
On Tue, 24 Oct 2023 at 18:47, Nathan Bossart <nathandbossart@gmail.com> wrote:
> BTW after applying your patches, initdb began failing with the following
> for me:
>
>         TRAP: failed Assert("n >= 0 && n < list->length"), File: "list.c", Line: 770, PID: 902807

Oh oops... That was an off by one error in the modified
foreach_delete_current implementation.
Attached is a fixed version.

Attachment

pgsql-hackers by date:

Previous
From: Mark Wong
Date:
Subject: Re: LLVM 16 (opaque pointers)
Next
From: Nathan Bossart
Date:
Subject: Re: SLRU optimization - configurable buffer pool and partitioning the SLRU lock