pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karthikeyan Sundaram <skarthi98@hotmail.com>
To: smarlowe@g2switchworks.com
Cc: pgsql-admin@postgresql.org
Subject: Re: how to add a new data partition
Date: Tue, 06 Feb 2007 16:09:15 -0800
Message-ID: <BAY131-F117694D3BC116CEE669DF6B09E0@phx.gbl> (raw)
In-Reply-To: <1170803834.5451.115.camel@state.g2switchworks.com>

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.

    How to do this in postgres?

    I don't want to compare with Oracle.  But in Oracle, when we create the 
DB

    we will tell alter database add data file 
'/local/postgres/database/data'
    then if /local partition is full, we can add another data file  such as
    alter database <db Name> add data file '/local1/data2'

    Is there a similar way or equivalent way to do in postgres?

Regards
skarthi



>From: Scott Marlowe <smarlowe@g2switchworks.com>
>To: Karthikeyan Sundaram <skarthi98@hotmail.com>
>CC: pgsql-admin@postgresql.org
>Subject: Re: [ADMIN] how to add a new data partition
>Date: Tue, 06 Feb 2007 17:17:15 -0600
>
>On Tue, 2007-02-06 at 15:46, Karthikeyan Sundaram wrote:
> > Hi all,
> >
> >   We are using postgres 8.0.1 on our production and 8.2 on our 
>development.
> > The linuix partition is getting full where the database resides.  In few
> > weeks our partition will ran out of space so the database will also run 
>out
> > of space. We have added another HDD of 300GB.  Now my question is, how 
>will
> > I point the database to the new partition along with the old one. Do I 
>need
> > to create a symbolic link to the exitisting DB?
> >
> >    Adding a new tablespace doesn't solve the issue as there are many 
>tables
> > in the old tablespace.  Is there a way to extend the tablespace to the 
>new
> > partition like in Oracle.
>
>So,
>
>alter table ... set tablespace new_tablespace
>
>doesn't work for you in this circumstance?
>
>---------------------------(end of broadcast)---------------------------
>TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match

_________________________________________________________________
Invite your Hotmail contacts to join your friends list with Windows Live 
Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.a...




view thread (11+ messages)  latest in thread

Message-ID: <BAY131-F117694D3BC116CEE669DF6B09E0@phx.gbl>
Permalink:  ../BAY131-F117694D3BC116CEE669DF6B09E0@phx.gbl/
Also on:    postgresql.org/message-id/BAY131-F117694D3BC116CEE669DF6B09E0@phx.gbl

 · 

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: skarthi98@hotmail.com, smarlowe@g2switchworks.com
  Subject: Re: how to add a new data partition
  In-Reply-To: <BAY131-F117694D3BC116CEE669DF6B09E0@phx.gbl>
  References: <1170803834.5451.115.camel@state.g2switchworks.com> <BAY131-F117694D3BC116CEE669DF6B09E0@phx.gbl>

* 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