Question about SHM_QUEUE - Mailing list pgsql-hackers

From ITAGAKI Takahiro
Subject Question about SHM_QUEUE
Date
Msg-id 20070411144409.0F9A.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
Whole thread Raw
Responses Re: Question about SHM_QUEUE
List pgsql-hackers
Hello,

I have a question about SHM_QUEUE. Why do we need this component?

We've already made some modules under the assumption that the base offset
of shared memory is mapped to the same address for all processes.
See comment in freespace.h:
* Note: we handle pointers to these items as pointers, not as SHMEM_OFFSETs.* This assumes that all processes accessing
themap will have the shared* memory segment mapped at the same place in their address space.
 

Then, can we replace SHM_QUEUE by a pointer-based double-linked list?
It will be an "intrusive" version of Dllist.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [mux@FreeBSD.org: Re: Anyone interested in improving postgresql scaling?]
Next
From: tomas@tuxteam.de
Date:
Subject: Re: prepared statements logging