Re: Why are we waiting? - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Why are we waiting?
Date
Msg-id 47A86F48.1010609@enterprisedb.com
Whole thread Raw
In response to Re: Why are we waiting?  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: Why are we waiting?  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
Simon Riggs wrote:
> On Mon, 2008-02-04 at 17:06 -0500, Tom Lane wrote:
> 
>> Basically I'd rather try to attack the problem with dtrace ...
> 
> OK. I'll switch to Solaris. Or do you something I don't about dtrace on
> linux?

One idea would be to add new arguments to LWLockAcquire as you suggest, 
but instead of modifying all call sites, decorate it with a macro that 
passes __FILE__ and __LINE__ as the extra arguments. The good thing 
about that is that it's a relatively small patch and you can easily 
switch it on/off with a #ifdef. And there's no need to push for 
inclusion of that into CVS, because it would be an easy patch to 
maintain yourself.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: [COMMITTERS] pgsql: configure tag'd 8.3.0 and built witih autoconf 2.59
Next
From: Magnus Hagander
Date:
Subject: Re: path with spaces in config.pl