Re: brin autosummarization -- autovacuum "work items"

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: brin autosummarization -- autovacuum "work items"
Date: 2017-04-01 17:06:01
Message-ID: 20170401170601.jpqar6gzw42uzhql@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas wrote:
> On Tue, Mar 21, 2017 at 4:10 PM, Alvaro Herrera
> <alvherre(at)2ndquadrant(dot)com> wrote:
> > Well, the number of work items is currently fixed; but if you have many
> > BRIN indexes, then you'd overflow (lose requests). By using DSA I am
> > making it easy to patch this afterwards so that an arbitrary number of
> > requests can be recorded.
>
> But that could also use an arbitrarily large amount of memory, and any
> leaks will be cluster-lifespan.

Good point -- probably not such a great idea as presented. The patch
only uses a fixed amount of memory currently, so it should be fine on
that front. I think this is a good enough start.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2017-04-01 17:09:06 Re: brin autosummarization -- autovacuum "work items"
Previous Message Magnus Hagander 2017-04-01 15:29:42 Re: gitlab post-mortem: pg_basebackup waiting for checkpoint