Re: Catalog bloat (again)

From: Jerry Sievers <gsievers19(at)comcast(dot)net>
To: Ivan Voras <ivoras(at)gmail(dot)com>
Cc: Bill Moran <wmoran(at)potentialtech(dot)com>, "pgsql-general\(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Catalog bloat (again)
Date: 2016-01-28 02:04:52
Message-ID: 86bn86sbln.fsf@jerry.enova.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ivan Voras <ivoras(at)gmail(dot)com> writes:

> On 28 January 2016 at 00:13, Bill Moran <wmoran(at)potentialtech(dot)com> wrote:
>
> On Wed, 27 Jan 2016 23:54:37 +0100
> Ivan Voras <ivoras(at)gmail(dot)com> wrote:
>
> > So, question #1: WTF? How could this happen, on a regularly vacuumed
> > system? Shouldn't the space be reused, at least after a VACUUM? The issue
> > here is not the absolute existence of the bloat space, it's that it's
> > constantly growing for *system* tables.
>
> With a lot of activity, once a day probably isn't regular enough.
>
> I sort of see what you are saying. I'm curious, though, what goes wrong with the following list of expectations:
>
> 1. Day-to-day load is approximately the same
> 2. So, at the end of the first day there will be some amount of bloat
> 3. Vacuum will mark that space re-usable
> 4. Within the next day, this space will actually be re-used
> 5. ... so the bloat won't grow.
>
> Basically, I'm wondering why is it growing after vacuums, not why it exists in the first place?

Probably just a classic case of long-open transactions.

And/or vacuum running as an unprivileged user and thus can't vacuum
catalogs... perhaps with a naive batch job launcher that sends stderr
to /dev/null.

>

--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres(dot)consulting(at)comcast(dot)net
p: 312.241.7800

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2016-01-28 03:11:17 Re: Catalog bloat (again)
Previous Message Berend Tober 2016-01-28 02:00:00 Re: Multi-Table Insert/Update Strategy - Use Functions/Procedures?