From: Richard Huxton <dev@archonet.com>
To: dpandey@secf.com
Cc: PostgreSQL <pgsql-sql@postgresql.org>
Subject: Re: Table PARTITION
Date: Thu, 07 Apr 2005 13:06:28 +0100
Message-ID: <42552244.5050603@archonet.com> (raw)
In-Reply-To: <20050407114136.17B7E53AA5@svr1.postgresql.org>
References: <20050407114136.17B7E53AA5@svr1.postgresql.org>
Dinesh Pandey wrote:
> How can we create oracle's table with partition in Postgres. (How to create
> Table partion in postgres)
>
> CREATE TABLE invoices
> (invoice_no NUMBER NOT NULL,
> invoice_date DATE NOT NULL,
> comments VARCHAR2(500))
>
> PARTITION BY RANGE (invoice_date)
> (PARTITION invoices_q1 VALUES LESS THAN (TO_DATE('01/04/2001',
> 'DD/MM/YYYY')) TABLESPACE users
By hand, I'm afraid (although I think people are looking into this
feature for version 8.1)
There's lots of discussion in the mail archives about how people are
handling this. You're basically looking at some combination of
- partial/conditional indexes
- unions
- inheritance
--
Richard Huxton
Archonet Ltd
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, dpandey@secf.com
Subject: Re: Table PARTITION
In-Reply-To: <42552244.5050603@archonet.com>
* 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