From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Noah Misch <noah(at)leadboat(dot)com> |
Cc: | Peter Geoghegan <pg(at)heroku(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Andres Freund <andres(at)anarazel(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Stephen Frost <sfrost(at)snowman(dot)net>, Magnus Hagander <magnus(at)hagander(dot)net>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Restore-reliability mode |
Date: | 2015-07-27 14:12:31 |
Message-ID: | 20150727141231.GE5596@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Noah Misch wrote:
> On Thu, Jul 23, 2015 at 04:53:49PM -0300, Alvaro Herrera wrote:
> > Peter Geoghegan wrote:
> > > On Sat, Jun 6, 2015 at 12:58 PM, Noah Misch <noah(at)leadboat(dot)com> wrote:
> > > > - Call VALGRIND_MAKE_MEM_NOACCESS() on a shared buffer when its local pin
> > > > count falls to zero. Under CLOBBER_FREED_MEMORY, wipe a shared buffer
> > > > when its global pin count falls to zero.
> > >
> > > Did a patch for this ever materialize?
> >
> > I think the first part would be something like the attached.
>
> Neat. Does it produce any new complaints during "make installcheck"?
I only tried a few tests, for lack of time, and it didn't produce any.
(To verify that the whole thing was working properly, I reduced the
range of memory made available during PinBuffer and that resulted in a
crash immediately). I am not really familiar with valgrind TBH and just
copied a recipe to run postmaster under it, so if someone with more
valgrind-fu could verify this, it would be great.
This part:
> > > > Under CLOBBER_FREED_MEMORY, wipe a shared buffer when its
> > > > global pin count falls to zero.
can be done without any valgrind, I think. Any takers?
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2015-07-27 14:15:58 | Re: Failing assertions in indxpath.c, placeholder.c and brin_minmax.c |
Previous Message | Kouhei Kaigai | 2015-07-27 14:07:15 | Re: [DESIGN] ParallelAppend |