From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add detached node functions to ilist |
Date: | 2023-01-18 19:43:58 |
Message-ID: | E1pIELm-004KiF-45@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Add detached node functions to ilist
These allow to test whether an element is in a list by checking whether
prev/next are NULL. Needed to replace SHMQueueIsDetached() when converting
from SHM_QUEUE to ilist.h style lists.
Reviewed-by: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Discussion: https://postgr.es/m/20221120055930.t6kl3tyivzhlrzu2@awork3.anarazel.de
Discussion: https://postgr.es/m/20200211042229.msv23badgqljrdg2@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/51384cc40c4a72c81d2475089ab8a1cf98ea56ff
Modified Files
--------------
src/include/lib/ilist.h | 63 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2023-01-18 19:58:55 | Re: pgsql: Get rid of the "new" and "old" entries in a view's rangetable. |
Previous Message | Andres Freund | 2023-01-18 18:28:29 | pgsql: Fix ILIST_DEBUG build |