Re: Table PARTITION - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Table PARTITION
Date
Msg-id 42552244.5050603@archonet.com
Whole thread Raw
In response to Table PARTITION  ("Dinesh Pandey" <dpandey@secf.com>)
Responses Re: Table PARTITION
Re: Table PARTITION
List pgsql-sql
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


pgsql-sql by date:

Previous
From: "Dinesh Pandey"
Date:
Subject: Table PARTITION
Next
From: "Dinesh Pandey"
Date:
Subject: Re: Table PARTITION