From:
"Simon Riggs" <simon(at)2ndquadrant(dot)com>
To:
"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc:
<pgsql-hackers(at)postgresql(dot)org>,"Bill Moran" <wmoran(at)collaborativefusion(dot)com>,"Alvaro Herrera" <alvherre(at)commandprompt(dot)com>,<pgsql-patches(at)postgresql(dot)org>
Subject:
Re: [HACKERS] Patch to log usage of temporary files
Date:
2007-01-03 15:35:44
Message-ID:
1167838544.3903.537.camel@silverbirch.site (view raw or flat )
Thread:
2007-01-02 21:47:19 from Bill Moran <wmoran(at)collaborativefusion(dot)com>
2007-01-02 21:57:02 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2007-01-02 22:15:31 from Bill Moran <wmoran(at)collaborativefusion(dot)com>
2007-01-02 23:20:37 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2007-01-03 15:35:44 from "Simon Riggs" <simon(at)2ndquadrant(dot)com>
2007-01-03 21:20:53 from Bill Moran <wmoran(at)collaborativefusion(dot)com>
2007-01-03 21:35:39 from Andrew Dunstan <andrew(at)dunslane(dot)net>
2007-01-04 00:56:10 from Bill Moran <wmoran(at)collaborativefusion(dot)com>
2007-01-04 01:05:27 from "Andrew Dunstan" <andrew(at)dunslane(dot)net>
2007-01-04 14:18:12 from Bill Moran <wmoran(at)collaborativefusion(dot)com>
2007-01-04 14:34:42 from Andrew Dunstan <andrew(at)dunslane(dot)net>
2007-01-04 14:56:18 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2007-01-04 16:35:28 from Bill Moran <wmoran(at)collaborativefusion(dot)com>
2007-01-06 22:28:39 from Bruce Momjian <bruce(at)momjian(dot)us>
2007-01-09 21:32:29 from Bruce Momjian <bruce(at)momjian(dot)us>
2007-01-09 21:33:59 from Bill Moran <wmoran(at)collaborativefusion(dot)com>
2007-01-09 21:50:58 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2007-01-09 22:16:49 from Bruce Momjian <bruce(at)momjian(dot)us>
2007-01-09 22:24:38 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2007-01-09 22:29:34 from Bruce Momjian <bruce(at)momjian(dot)us>
2007-01-09 22:32:13 from Bill Moran <wmoran(at)collaborativefusion(dot)com>
2007-01-09 22:34:33 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2007-01-09 22:37:40 from Bruce Momjian <bruce(at)momjian(dot)us>
2007-01-10 09:26:06 from Benny Amorsen <benny+usenet(at)amorsen(dot)dk>
2007-01-09 22:36:41 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2007-01-11 17:08:22 from "Simon Riggs" <simon(at)2ndquadrant(dot)com>
2007-01-11 17:35:25 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2007-01-11 21:09:44 from "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
2007-01-11 22:49:11 from "Simon Riggs" <simon(at)2ndquadrant(dot)com>
2007-01-11 17:37:18 from Bruce Momjian <bruce(at)momjian(dot)us>
2007-01-11 22:45:10 from "Simon Riggs" <simon(at)2ndquadrant(dot)com>
2007-01-12 16:44:39 from Bruce Momjian <bruce(at)momjian(dot)us>
2007-01-12 17:58:53 from "Simon Riggs" <simon(at)2ndquadrant(dot)com>
2007-01-05 21:49:05 from Jim Nasby <decibel(at)decibel(dot)org>
2007-01-02 22:07:38 from Andrew Dunstan <andrew(at)dunslane(dot)net>
2007-01-12 09:46:41 from "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com>
2007-01-12 19:12:48 from Bruce Momjian <bruce(at)momjian(dot)us>
2007-01-12 19:23:21 from "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com>
2007-01-12 19:29:05 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2007-01-12 19:48:17 from "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com>
2007-01-12 19:59:20 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2007-01-12 20:53:35 from Bruce Momjian <bruce(at)momjian(dot)us>
2007-01-12 19:36:57 from Bruce Momjian <bruce(at)momjian(dot)us>
2007-01-12 19:43:04 from "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com>
2007-01-12 20:04:46 from Bruce Momjian <bruce(at)momjian(dot)us>
2007-01-12 21:26:03 from Bill Moran <wmoran(at)collaborativefusion(dot)com>
Lists:
pgsql-hackers pgsql-patches
On Tue, 2007-01-02 at 18:20 -0500, Tom Lane wrote:
> Bill Moran <wmoran(at)collaborativefusion(dot)com> writes:
> > In response to Alvaro Herrera <alvherre(at)commandprompt(dot)com>:
> >> 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.
>
> Well, we are NOT paying a stat() call on every single file close,
> whether Simon wants it or not.
Simon doesn't/wouldn't want the stat() call on each file close.
If you put the PG_TRACE macro outside of the if test, yet prior to the
file close, you can pass the filename through like this
PG_TRACE1(temp__file__cleanup, vfdP->fileName);
That way DTrace can make its own call to find out filesize, if it would
like to... and we don't need to stat() before each temp file close.
That's much more flexible and useful, as well as better performance.
--
Simon Riggs
EnterpriseDB http://www.enterprisedb.com
In response to
Responses
pgsql-hackers by date
Next :From: Jim NasbyDate: 2007-01-03 15:40:38
Subject : Re: TODO: Add a GUC to control whether BEGIN inside
Previous :From : Jim NasbyDate : 2007-01-03 15:33:35
Subject : Re: effective_cache_size vs units
pgsql-patches by date
Next :From: Bill MoranDate: 2007-01-03 21:20:53
Subject : Re: [HACKERS] Patch to log usage of temporary files
Previous :From : Zeugswetter Andreas ADI SDDate : 2007-01-03 11:18:42
Subject : Re: Load distributed checkpoint