Re: Thoughts on statistics for continuously advancing columns

Поиск
Список
Период
Сортировка
От Csaba Nagy
Тема Re: Thoughts on statistics for continuously advancing columns
Дата
Msg-id 1262620094.5815.418.camel@pcd12478
обсуждение исходный текст
Ответ на Re: Thoughts on statistics for continuously advancing columns  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, 2009-12-30 at 17:16 +0100, Tom Lane wrote:
> I think the cleanest solution to this would be to make ANALYZE
> cheaper, perhaps by finding some way for it to work incrementally.

What if when inserting/deleting a tuple, some random sample of them
would be passed into an auto-analyze buffer ?

Then a special process (the auto-analyze daemon) would process them and
update the statistics incrementally based on the new values found (which
might or might not be mathematically feasible).

The overhead for each backend process would be kept in limits by the
rate at which you randomly send or not send the change to the analyze
buffer.

The processing overhead would be kept in limits by the processing rate
of the auto-analyze process, which can be made to periodically sleep or
it could be made to span multiple processes (on multiprocessor systems).

If the buffer is full, then you skip putting in it... so it also could
autotune itself to a sustainable rate.


Of course as with all my other posts on hackers, this is all mostly
hand-waving, I have no clue about the feasibility of all this with
regard to the current state of the code (which I didn't read, I
unfortunately found myself hating reading C code beyond reason, and
writing any of it till now resumed to copy-paste-modify).

Cheers,
Csaba.


Csaba Nagy
Software Engineer
eCircle
P: +49 (0)89 / 120 09-783 | F: +49 (0)89 / 120 09-750
E: c.nagy@ecircle.com
Nymphenburger Str. 86, 80636 M�nchen
Stay in touch
Web: www.ecircle.com/de | Newsletter: www.ecircle.com/index.php?id=63&L=0

F�r Hilfe mit dem eC-messenger wenden Sie sich bitte an unseren
Support: support-de@ecircle.com.

Neuste Untersuchungen
Ein unschlagbares Doppel: E-mail-Marketing & Webanalyse
Download Whitepaper: www.ecircle.com/index.php?id=61&L=0
eCircle AG, HRB 136 334, Handelsregister M�nchen Vorstand:
Volker Wiewer (Vorsitzender), Thomas Wilke, Lars W�ssner,
Alexander Meyer Vorsitzender des Aufsichtsrates: Dr. Mark W�ssner

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Setting oom_adj on linux?
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Setting oom_adj on linux?