Re: Patch to log usage of temporary files - Mailing list pgsql-patches

From Bill Moran
Subject Re: Patch to log usage of temporary files
Date
Msg-id 20070102171531.71ce1176.wmoran@collaborativefusion.com
Whole thread Raw
In response to Re: Patch to log usage of temporary files  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Patch to log usage of temporary files
List pgsql-patches
In response to Alvaro Herrera <alvherre@commandprompt.com>:

> Bill Moran wrote:
> >
> > Thanks to Simon Riggs and Bruce for input that helped me put this together.
>
> Please change things to save the stat() syscall when the feature is not
> in use.

Do you have a suggestion on how to do that and still have the PG_TRACE1()
work?  That was specifically requested by Simon Riggs.

I'm not at all familiar with how the PG_TRACE probes work, so I'd be
interested to hear suggestions on how to wrap that in an if.  If I remove
the PG_TRACE, it becomes a simple matter to skip the stat() if the feature
is disabled.

> Nitpick: also note our brace placement convention (though this would be
> fixed by pgindent, but still).

Sorry, I thought I _was_ following the convention.  Must have missed
something.  Is there a written style guide somewhere?  Might drive things
home a little better than just looking at other folks code.

--
Bill Moran
Collaborative Fusion Inc.

pgsql-patches by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Patch to log usage of temporary files
Next
From: Tom Lane
Date:
Subject: Re: Patch to log usage of temporary files