Re: pg11.1: dsa_area could not attach to segment

Thomas Munro <thomas.munro@enterprisedb.com>

From: Thomas Munro <thomas.munro@enterprisedb.com>
To: Sergei Kornilov <sk@zsrv.org>
Cc: Justin Pryzby <pryzby@telsasoft.com>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2019-02-12T00:07:35Z
Lists: pgsql-hackers
On Tue, Feb 12, 2019 at 10:57 AM Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> bogus shm_open() EEXIST from the OS

Strike that particular idea... it'd be the non-DSM_OP_CREATE case, and
if the file was somehow bogusly not visible to us we'd get ENOENT and
that'd raise an error, and we aren't seeing that.

-- 
Thomas Munro
http://www.enterprisedb.com


Commits

  1. Fix race in dsm_attach() when handles are reused.

  2. Refactor pid, random seed and start time initialization.