Re: Patch to log usage of temporary files

Поиск
Список
Период
Сортировка
От Bill Moran
Тема Re: Patch to log usage of temporary files
Дата
Msg-id 20070102171531.71ce1176.wmoran@collaborativefusion.com
обсуждение исходный текст
Ответ на Re: Patch to log usage of temporary files  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Patch to log usage of temporary files  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Patch to log usage of temporary files
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Patch to log usage of temporary files