Re: PostgreSQL Full Vacuum Taking 5 to 6 hrs.

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: PostgreSQL Full Vacuum Taking 5 to 6 hrs.
Date: 2022-02-08 14:11:44
Message-ID: c5b82cb9-bdfd-d782-a438-94967a816562@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Maybe your database is really big.
Maybe your storage subsystem is really slow.
Maybe you're only running one thread.
Maybe it's being blocked by other users.

We don't know because you've barely told us anything.

Not to mention: VACUUM FULL is *only* useful after you've updated or deleted
a major portion of a table all at once.

On 2/8/22 5:22 AM, Ram Pratap Maurya wrote:
> HI Julien,
>
> In my current database index size is very large compare than table (if table size is 30 GB and index size is 90GB) , that why We running full vacuum monthly basis to increase the system performance and data reclaim .
> Auto Vacuum is also configuration in system.
> As per your suggesion if we increase " maintenance_work_mem " paramater size to 1GB this will be help to improve full vacuum performance?.
>
> System configuration as below:
>
> CPU - 42
> RAM -70GB
>
>
>
> Regards,
> Ram Pratap.
>
> -----Original Message-----
> From: Julien Rouhaud [mailto:rjuju123(at)gmail(dot)com]
> Sent: 08 February 2022 12:38
> To: Ram Pratap Maurya
> Cc: 'pgsql-admin(at)lists(dot)postgresql(dot)org'; Ashish Chugh
> Subject: Re: PostgreSQL Full Vacuum Taking 5 to 6 hrs.
>
> Hi,
>
> Please don't top post on those forums
> (https://wiki.postgresql.org/wiki/Mailing_Lists#Email_etiquette_mechanics)
>
> On Tue, Feb 08, 2022 at 06:59:07AM +0000, Ram Pratap Maurya wrote:
>> we are running VACUUM FULL on all table and its take 5 to 6 Hrs.
> The only thing that can be done to make it faster is to use a 1GB maintenance_work_mem.
>
> But why do you need to do frequent database wide VACUUM FULL in the first place? Do you really have massive bloat on every single table in the database?
>
> Do you have adequate autovacuum configuration, or additional VACUUM jobs if that's not enough?
>
>

--
Angular momentum makes the world go 'round.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Roberto D. Maggi 2022-02-08 14:48:50 pgadmin doesn't show the tables in brand new created db
Previous Message Julien Rouhaud 2022-02-08 13:02:25 Re: PG_Base Backup take 8 to 9Hrs