| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix ILIST_DEBUG build |
| Date: | 2023-01-18 18:28:29 |
| Message-ID: | [email protected] |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Fix ILIST_DEBUG build
In c8ad4d8166a dlist_member_check()'s arguments were made const. Unfortunately
the implementation of dlist_member_check() used dlist_foreach(), which
currently doesn't work for const lists.
As a workaround, open-code the list iteration. The other check functions
already do so.
Discussion: https://postgr.es/m/[email protected]
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2b16208753770318085b1201a6d101cab2697132
Modified Files
--------------
src/backend/lib/ilist.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2023-01-18 19:43:58 | pgsql: Use dlist/dclist instead of PROC_QUEUE / SHM_QUEUE for heavyweig |
| Previous Message | Tom Lane | 2023-01-18 18:24:45 | pgsql: Get rid of the "new" and "old" entries in a view's rangetable. |