Re: Live sort-of-'warehousing' database how-to?

From: Mario Splivalo <mario(dot)splivalo(at)megafon(dot)hr>
To: Igor Neyman <ineyman(at)perceptron(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Live sort-of-'warehousing' database how-to?
Date: 2010-04-01 07:54:37
Message-ID: 4BB4513D.7000705@megafon.hr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Igor Neyman wrote:
>
> Partition your MESSAGES table by week or month (read on table
> partitioning in PG docs).
>
> Pg_dump "old" purtitions from "current" server, when they are not needed
> any more.
> Move backups of dumped partitions to your "auxilary" server, and
> pg_restore them there.

Hm. I never actually wanted to use partitioning (and I always thought my
databases are small in size and don't need partitioning) because of what
seems to be awful overhead of maintaining insert rules or insert
triggers. But your idea sound plausible for exactly what i need.
The only problem is that on the "auxiliary" server I wouldn't have the
last month/week or so, and I'd love to so every day or maybe every hour.
Will see, thank you! :)

Mike

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Christophe Dore 2010-04-01 09:29:26 pg_restore : change schema
Previous Message Kevin Grittner 2010-03-31 21:47:18 Re: Free Space after vacuuming