Re: Tables not getting vacuumed in postgres

From: "Karthik Jagadish (kjagadis)" <kjagadis(at)cisco(dot)com>
To: Amul Sul <sulamul(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, "Prasanna Satyanarayanan (prassaty)" <prassaty(at)cisco(dot)com>, "Chandruganth Ayyavoo Selvam (chaayyav)" <chaayyav(at)cisco(dot)com>, "Jaganbabu M (jmunusam)" <jmunusam(at)cisco(dot)com>
Subject: Re: Tables not getting vacuumed in postgres
Date: 2022-11-08 12:41:09
Message-ID: IA1PR11MB617053CD2979BE6EF83F9EB2D83F9@IA1PR11MB6170.namprd11.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Thanks for the response.

But what I understand that insert update and delete would still work and will not interfere with vacuuming process. Yes we do perform a lot of updates on that particular table which is not vacuuming. Does it mean that it waiting for the lock to be released?

Regards,
Karthik

From: Amul Sul <sulamul(at)gmail(dot)com>
Date: Tuesday, 8 November 2022 at 5:38 PM
To: Karthik Jagadish (kjagadis) <kjagadis(at)cisco(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org <pgsql-hackers(at)postgresql(dot)org>, Prasanna Satyanarayanan (prassaty) <prassaty(at)cisco(dot)com>, Chandruganth Ayyavoo Selvam (chaayyav) <chaayyav(at)cisco(dot)com>, Jaganbabu M (jmunusam) <jmunusam(at)cisco(dot)com>
Subject: Re: Tables not getting vacuumed in postgres
On Tue, Nov 8, 2022 at 5:00 PM Karthik Jagadish (kjagadis)
<kjagadis(at)cisco(dot)com> wrote:
>
> Hi,
>
> We have a NMS application where we are using postgres as database, what we are noticing is that vacuuming is not happening for certain tables for 2-3 days and eventually the table bloats and disk space is running out.
>
> What could be the reason for auto vacuuming not happening for certain tables?
>

Check if there is any long-running or prepared transaction.

Regards,
Amul

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amul Sul 2022-11-08 13:08:50 Re: Tables not getting vacuumed in postgres
Previous Message Peter Eisentraut 2022-11-08 12:39:14 Re: psql: Add command to use extended query protocol