Re: Performance monitor - Mailing list pgsql-hackers

From Philip Warner
Subject Re: Performance monitor
Date
Msg-id 3.0.5.32.20010308114228.02784150@mail.rhyme.com.au
Whole thread Raw
In response to Re: Performance monitor  (Justin Clift <aa2@bigpond.net.au>)
Responses Re: Performance monitor  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
At 11:33 8/03/01 +1100, Justin Clift wrote:
>Hi all,
>
>Wouldn't another approach be to write a C function that does the
>necessary work, then just call it like any other C function?
>
>i.e.  Connect to the database and issue a "select
>perf_stats('/tmp/stats-2001-03-08-01.txt')" ?
>

I think Bruce wants per-backend data, and this approach would seem to only
get the data for the current backend. 

Also, I really don't like the proposal to write files to /tmp. If we want a
perf tool, then we need to have something like 'top', which will
continuously update. With 40 backends, the idea of writing 40 file to /tmp
every second seems a little excessive to me.



----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/


pgsql-hackers by date:

Previous
From: Justin Clift
Date:
Subject: Re: Performance monitor
Next
From: Hiroshi Inoue
Date:
Subject: Re: AW: Proposed WAL changes