Re: VACUUM VERBOSE ANALYZE taking long time to process.

From: Ben Chobot <bench(at)silentmedia(dot)com>
To: anil7385 <anilnk7385(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: VACUUM VERBOSE ANALYZE taking long time to process.
Date: 2015-09-15 23:52:10
Message-ID: 9A6FAF1F-C85D-4546-B60D-E7375142AA56@silentmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Sep 9, 2015, at 3:43 AM, anil7385 <anilnk7385(at)gmail(dot)com> wrote:
>
> Hi,
> We have a table which consists of 3 millions of records and when we try to
> delete them and run VACUUM VERBOSE ANALYZE on it in production environment ,
> it takes 6/7 hours to process.

You make it sound like you are deleting all records. If that's true, why not TRUNCATE? It'll be a lot faster, and also leave you with no need to vacuum.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Eildert Groeneveld 2015-09-17 11:32:30 degrading inser performance
Previous Message Jim Nasby 2015-09-14 22:08:07 Re: Server slowing down over time