From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Chris Marcellino <cmarcellino(at)apple(dot)com> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Feature: POSIX Shared memory support, round 2 |
Date: | 2007-02-09 14:40:37 |
Message-ID: | 24343.1171032037@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Chris Marcellino <cmarcellino(at)apple(dot)com> writes:
> Here is a new patch that uses the POSIX api's. It encodes the
> canonical path (see 'man realpath') of the database's data directory
> into the shared memory segment name using an strong hash function to
> make it fit in the shared memory segment name under all cases,
> without risk of key collision.
I find this patch utterly unreadable, because of your cavalier disregard
for making the comments match the truth. You have copied-and-pasted the
original SysV code and fixed some small fraction of the comments, and I
cannot tell which ones still reflect reality --- but I can tell that a
lot of them don't.
Also, I don't see where this implements any sort of detection of live
backends attached to an existing segment, so I don't think you have
responded to that objection. Magnus' idea for Windows was to use a
segment set up to automatically go away as soon as the last attacher
died, but AFAICT that isn't how this works.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-02-09 14:49:25 | Re: [PATCHES] How can I use 2GB of shared buffers on Windows? |
Previous Message | Martijn van Oosterhout | 2007-02-09 14:32:10 | Re: [PATCHES] How can I use 2GB of shared buffers on Windows? |