Re: Providing anonymous mmap as an option of sharing memory - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Providing anonymous mmap as an option of sharing memory
Date
Msg-id 15302.1069862961@sss.pgh.pa.us
Whole thread Raw
In response to Re: Providing anonymous mmap as an option of sharing memory  (Shridhar Daithankar <shridhar_daithankar@myrealbox.com>)
Responses Re: Providing anonymous mmap as an option of sharing memory
Re: Providing anonymous mmap as an option of sharing memory
List pgsql-hackers
Shridhar Daithankar <shridhar_daithankar@myrealbox.com> writes:
> I covered only first point in my post. IMO it is not such a unsolvable
> problem.  If a postmaster crashes hard but leaves a backend running,
> would it clean pid file etc? I don't think so. So if a postmaster can
> start on a 'pid-clean' state, then it is guaranteed to be no childs
> left around.

And that helps how?  The problem is to detect whether there are any
children left from the old postmaster, when what you have to work from
is the pid-file it left behind.

In any case, you're still handwaving away the very real portability
issues around mmap.  Linux is not the universe, and Linux+BSD isn't
either.

We might still have considered it, despite the negatives, if anyone had
been able to point to any actual *advantages* of mmap.  There are none.
Yes, the SysV shmem API is old and ugly and crufty, but it does what we
need it to do.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: A rough roadmap for internationalization fixes
Next
From: Greg Stark
Date:
Subject: Re: detecting poor query plans