pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dinesh Pandey <dpandey@secf.com>
To: 'Richard Huxton' <dev@archonet.com>
Cc: 'PostgreSQL' <pgsql-sql@postgresql.org>
Subject: Re: Table PARTITION
Date: Thu, 7 Apr 2005 17:39:39 +0530
Message-ID: <20050407121301.7328453821@svr1.postgresql.org> (raw)
In-Reply-To: <42552244.5050603@archonet.com>

 
Hi Richard,

I am using postgres 8.0.1. It allows us to create TABLESPACE but I don't
know how to create PARTITION in postgres.

Can you pls tell me little more.

Thanks
Dinesh Pandey

-----Original Message-----
From: Richard Huxton [mailto:dev@archonet.com] 
Sent: Thursday, April 07, 2005 5:36 PM
To: dpandey@secf.com
Cc: 'PostgreSQL'
Subject: Re: [SQL] Table PARTITION

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





view thread (10+ messages)  latest in thread

Message-ID: <20050407121301.7328453821@svr1.postgresql.org>
Permalink:  ../20050407121301.7328453821@svr1.postgresql.org/
Also on:    postgresql.org/message-id/20050407121301.7328453821@svr1.postgresql.org

 · 

reply

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: dpandey@secf.com, dev@archonet.com
  Subject: Re: Table PARTITION
  In-Reply-To: <20050407121301.7328453821@svr1.postgresql.org>

* 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