Thread: read/write statistics on a table

read/write statistics on a table

From
"Marc G. Fournier"
Date:
Are any maintained within the database that can be queried/viewed?

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664

Re: read/write statistics on a table

From
Tom Lane
Date:
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> Are any maintained within the database that can be queried/viewed?

http://www.postgresql.org/docs/7.4/static/monitoring-stats.html

            regards, tom lane

Re: read/write statistics on a table

From
"Marc G. Fournier"
Date:
On Sun, 21 Mar 2004, Tom Lane wrote:

> "Marc G. Fournier" <scrappy@postgresql.org> writes:
> > Are any maintained within the database that can be queried/viewed?
>
> http://www.postgresql.org/docs/7.4/static/monitoring-stats.html

Ack, had read it, but skim'd over it too fast :(

one question I do have, that I'm not finding on the page ... are these
stats since the postmaster started, or are they kept across reboots?  I'm
suspecting since start, else the I/O used by the collector would
presumably get *very* busy having to write the data to the disks, but ...



----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664

Re: read/write statistics on a table

From
Tom Lane
Date:
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> one question I do have, that I'm not finding on the page ... are these
> stats since the postmaster started, or are they kept across reboots?

You can have it either way --- there's a GUC var that determines whether
the stats are reset at postmaster start.

            regards, tom lane