Re: vacuuming taking long time for pg_attribute

From: Siraj G <tosiraj(dot)g(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: vacuuming taking long time for pg_attribute
Date: 2025-01-17 06:16:30
Message-ID: CAC5iy61AfsXXQ6F-Oz0hsV2kVPvu6OO61az9iUQ46eAFwaWbfQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

One other thing I would like to add..
While the performance was problem, our application jobs also failed and we
were unable to start them as internally they query pg_attribute.

Regards
Siraj

On Fri, Jan 17, 2025 at 11:45 AM Siraj G <tosiraj(dot)g(at)gmail(dot)com> wrote:

> Hello Experts!
>
> The PgSQL version is 16 and it runs in Cloud SQL managed by GCP.
>
> Problem was that we were unable to conveniently get the object details in
> the schema browser (within the Cloud SQL Studio) as it was getting timeout
> again and again. Several application jobs start to fail. Eventually we
> found that pg_catalog.pg_attribute was having tons of dead tuples. While
> vacuum on this took several hours, the problem got resolved eventually.
> Command ran: vacuum pg_attribute;
>
> I would like to understand how this issue can be prevented. We do have
> autovacuum ON and I could see the last vacuum on this table was just about
> 30hrs back.
>
> Appreciate any suggestions.
>
> Regards
> Siraj
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2025-01-17 08:46:22 Re: vacuuming taking long time for pg_attribute
Previous Message Siraj G 2025-01-17 06:15:22 vacuuming taking long time for pg_attribute