pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add detached node functions to ilist
Date: Wed, 18 Jan 2023 19:43:58 +0000
Message-ID: <E1pIELm-004KiF-45@gemulon.postgresql.org> (raw)

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.munro@gmail.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(+)



Message-ID: <E1pIELm-004KiF-45@gemulon.postgresql.org>
Permalink:  ../E1pIELm-004KiF-45@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pIELm-004KiF-45@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Add detached node functions to ilist
  In-Reply-To: <E1pIELm-004KiF-45@gemulon.postgresql.org>
  References: <E1pIELm-004KiF-45@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox