From: Dani Oderbolz <oderbolz@ecologic.de>
To: Ray Ontko <rayo@ontko.com>
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Partition DB Tables by month
Date: Tue, 29 Jul 2003 16:05:09 +0200
Message-ID: <3F267F15.9060705@ecologic.de> (raw)
In-Reply-To: <20030729124246.GA15298@ontko.com>
References: <3F25BC0B.3050000@ragingnet.com>
<3F265EC3.5010603@ecologic.de>
<20030729124246.GA15298@ontko.com>
Ray Ontko wrote:
>One limitation to the UNION approach is that you can't
>insert, update, or delete through the UNION view. At
>some point the application needs to understand how the
>virtual table is partitioned into these month-specific
>tables.
>
>Romido: Why not simply delete the rows each month instead
>of dropping tables each month?
>
Hmm,
but it wouls surely be possible (at the cost of some performace)
to put a trigger on the view to actually sort this all out.
I guess deleting is a really bad option, as
1. The DB needs to do all kinds of logging which you donmm't want (you
dont want to rollback ever)
2. This operations leaves you with a big Vacuum job
Therefore, I think, Partitioning could be a good thing.
BDW: This might be a really important reason for a
company to switch their Data Warehouse to Postgres,
as this is almost impossible without it.
Regards,
Dani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: oderbolz@ecologic.de, rayo@ontko.com
Subject: Re: Partition DB Tables by month
In-Reply-To: <3F267F15.9060705@ecologic.de>
References: <3F25BC0B.3050000@ragingnet.com> <3F265EC3.5010603@ecologic.de> <20030729124246.GA15298@ontko.com> <3F267F15.9060705@ecologic.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox