pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shane Ambler <pgsql@007Marketing.com>
To: Karthikeyan Sundaram <skarthi98@hotmail.com>
Cc: smarlowe@g2switchworks.com
Cc: pgsql-admin@postgresql.org
Subject: Re: how to add a new data partition
Date: Wed, 07 Feb 2007 19:01:04 +1030
Message-ID: <45C98E48.9030509@007Marketing.com> (raw)
In-Reply-To: <BAY131-F117694D3BC116CEE669DF6B09E0@phx.gbl>
References: <BAY131-F117694D3BC116CEE669DF6B09E0@phx.gbl>

Karthikeyan Sundaram wrote:
> Hi Scott,
> 
>   Thanks for replying.  The tablespace is not the main problem here.  I 
> want the data files to grow in the new partition along with the old 
> linux partition.
> 
>   Let me put like this.
> 
>    We have a linux partition of 120GB called as 
> /local/postgres/database/Data/< followed by all files>
> 
>     This /local partition is 95 % used.
> 
>     So we are adding one more partition called /local1 which is 
> approximately 250 GB.  Now I want to inform postgres that after /local 
> partiion is 100 %, I want to utilize the /local1 so that the database 
> can grow significantly.  In other words, the data file created and 
> maintained by postgres will grow in the /local1 partition.

The closest I would think is partitioning - data matching certain 
criteria can be in one tablespace and other data in another tablespace.
This won't be just once this disk is full use another - you would say 
something like table1's rows with id<2000000 on this disk and 
id>=2000000 on another.
If your data is that large you may want to look into the benefit's it 
can offer even if you do use lvm.

http://www.postgresql.org/docs/current/interactive/ddl-partitioning.html




-- 

Shane Ambler
pgSQL@007Marketing.com

Get Sheeky @ http://Sheeky.Biz



view thread (11+ messages)

Message-ID: <45C98E48.9030509@007Marketing.com>
Permalink:  ../45C98E48.9030509@007Marketing.com/
Also on:    postgresql.org/message-id/45C98E48.9030509@007Marketing.com

 · 

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 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: pgsql@007Marketing.com, skarthi98@hotmail.com, smarlowe@g2switchworks.com
  Subject: Re: how to add a new data partition
  In-Reply-To: <45C98E48.9030509@007Marketing.com>
  References: <BAY131-F117694D3BC116CEE669DF6B09E0@phx.gbl> <45C98E48.9030509@007Marketing.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