Re: Why our counters need to be time-based WAS: WIP: cross column correlation ... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Why our counters need to be time-based WAS: WIP: cross column correlation ...
Date
Msg-id 28234.1298921513@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why our counters need to be time-based WAS: WIP: cross column correlation ...  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Why our counters need to be time-based WAS: WIP: cross column correlation ...  (Michael Glaesemann <grzm@seespotcode.net>)
Re: Why our counters need to be time-based WAS: WIP: cross column correlation ...  (Robert Haas <robertmhaas@gmail.com>)
Re: Why our counters need to be time-based WAS: WIP: cross column correlation ...  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Feb 28, 2011 at 1:50 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Ultimately we need to think of a reporting mechanism that's a bit
>> smarter than "rewrite the whole file for any update" ...

> Well, we have these things called "tables".  Any chance of using those?

Having the stats collector write tables would violate the classical form
of the heisenberg principle (thou shalt avoid having thy measurement
tools affect that which is measured), not to mention assorted practical
problems like not wanting the stats collector to take locks or run
transactions.

The ideal solution would likely be for the stats collector to expose its
data structures as shared memory, but I don't think we get to do that
under SysV shmem --- it doesn't like variable-size shmem much.  Maybe
that's another argument for looking harder into mmap or POSIX shmem,
although it's not clear to me how well either of those fixes that.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: knngist - 0.8
Next
From: Simon Riggs
Date:
Subject: Re: Sync Rep v17