Re: Allowing to run a buildfarm animal under valgrind - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Allowing to run a buildfarm animal under valgrind
Date
Msg-id 20160308212629.lorfxiip7tepp6nh@alap3.anarazel.de
Whole thread Raw
In response to Re: Allowing to run a buildfarm animal under valgrind  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On 2016-03-08 18:24:23 -0300, Alvaro Herrera wrote:
> Andres Freund wrote:
> 
> > I do wonder if adding a PGCTLPOSTGRESWRAPPER or something to pg_ctl
> > would be ok. That'd just supplant calling the postgres binary, making
> > all this easier.
> 
> This seems a reasonably principled way to go about this.  Eventually we
> might plug other things in it ...

It's not that easy to write such a wrapper though - you *have* to exec
the final binary, because -w assumes that the child pid is going to
appear in postmaster.pid...

To be actually useful we kinda would have to backpatch this to 9.4
(where the valgrind hardening stuff started)...

Andres



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Parallel Aggregate
Next
From: Tom Lane
Date:
Subject: Re: More stable query plans via more predictable column statistics