Re: Retain dynamic shared memory segments for postmaster lifetime - Mailing list pgsql-hackers

From Kyotaro HORIGUCHI
Subject Re: Retain dynamic shared memory segments for postmaster lifetime
Date
Msg-id 20140212.173230.233686288.horiguchi.kyotaro@lab.ntt.co.jp
Whole thread Raw
In response to Re: Retain dynamic shared memory segments for postmaster lifetime  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: Retain dynamic shared memory segments for postmaster lifetime  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-hackers
Hello,

> Please find new version of patch attached with this mail containing
> above changes.

This patch applies cleanly on current HEAD and build completed
successfully on both Windows and Linux. (but master needed to be
rewinded to some time ago for some compile errors.)

This works correctly as before.

Finally before send to commiters, would you mind changing the
name of the segment "Global/PostgreSQL.%u" as
'Global/PostgreSQL.dsm.%u" or something mentioned in the last my
email? However, it is a bit different thing from this patch so
I have no intention to compel to do the changing.


> >> The orphan section handles on postmaster have become a matter of
> >> documentation.
> 
> I had explained this in function header of dsm_keep_segment().

The comment satisfies me. Thank you.

> I had added a new function in dsm_impl.c for platform specific
> handling and explained about new behaviour in function header.

This seems quite clear for me.

> > - "Global/PostgreSQL.%u" is the same literal constant with that
> >   occurred in dsm_impl_windows. It should be defined as a
> >   constant (or a macro).
> 
> Changed to hash define.

Thank you.

> > - dms_impl_windows uses errcode_for_dynamic_shared_memory() for
> >   ereport and it finally falls down to
> >   errcode_for_file_access(). I think it is preferable, maybe
> 
> Changed as per suggestion.

I saw it done.

regards,

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



pgsql-hackers by date:

Previous
From: KONDO Mitsumasa
Date:
Subject: Re: Add min and max execute statement time in pg_stat_statement
Next
From: Christian Kruse
Date:
Subject: Re: Patch: compiling the docs under Gentoo