Partitioned Tables vs Vacuum+Reindex

From: Edgar Delgado <edgdelgado(at)gmail(dot)com>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Partitioned Tables vs Vacuum+Reindex
Date: 2016-01-08 14:30:59
Message-ID: CAENQbUMxRHhLuz_FC-EPhuFRqJx=20hjqwuWvb4WT9D+QnzHPg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello!

I've a question about partitioned tables (never used before).

I got a table with 100gb and data been added and removed all the time so
once I week I run vacuum on it, the problem is the vacuum is taking 1 n 1/2
hour to finish.

Only newest data on this table keep been added/removed, data from 2-3
months in the past is only used for historical needs.

If I partition my table will be fast the vacuum process? Can I only vacuum
the main partitioned table and the the historical out of the maintenance?

Thanks.
Edgar

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Shreeyansh Dba 2016-01-08 14:57:12 Re: Partitioned Tables vs Vacuum+Reindex
Previous Message Gunnar "Nick" Bluth 2016-01-08 09:16:51 Re: New Column existing table + View