From: Dani Oderbolz <oderbolz@ecologic.de>
To: Romildo Wildgrube <romildo@ragingnet.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Partition DB Tables by month
Date: Tue, 29 Jul 2003 13:47:15 +0200
Message-ID: <3F265EC3.5010603@ecologic.de> (raw)
In-Reply-To: <3F25BC0B.3050000@ragingnet.com>
References: <3F25BC0B.3050000@ragingnet.com>
Romildo Wildgrube wrote:
> Hi,
>
> Is there a way to break the data files by month like in Oracle so that
> I can easely drop the tables on a monthly basis? Is this something
> postgres supports or is there a work around solution?
Hmm, as far as I know its not supported.
But I could think of a solution of a table per month
which are then hidden behind a view which does a UNION ALL
on all of them.
You could even automate the Adminostration of this via a Function.
I mean, in Oracle Partitions behave like single tables, so this would
simulate somethig similar.
But I think the Optimizer would not
be able to see that he must only access the table table_Jan_2003
if you are restricting on January 2003...
Cheers, 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, romildo@ragingnet.com
Subject: Re: Partition DB Tables by month
In-Reply-To: <3F265EC3.5010603@ecologic.de>
References: <3F25BC0B.3050000@ragingnet.com> <3F265EC3.5010603@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