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: vacuuming taking long time for pg_attribute
Date: 2025-01-17 06:15:22
Message-ID: CAC5iy63HKROj55PSZ3Ls7WmXVWi-DvRaqqRpp_7A6g1QTPAb=Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Siraj G 2025-01-17 06:16:30 Re: vacuuming taking long time for pg_attribute
Previous Message Gambhir Singh 2025-01-16 18:09:36 Re: Need an idea to operate massive delete operation on big size table.