Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 875169FA6AF for ; Tue, 6 Feb 2007 17:56:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 43162-07 for ; Tue, 6 Feb 2007 17:55:48 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from bay0-omc3-s5.bay0.hotmail.com (bay0-omc3-s5.bay0.hotmail.com [65.54.246.205]) by postgresql.org (Postfix) with ESMTP id 9FDFB9FB2B8 for ; Tue, 6 Feb 2007 17:55:57 -0400 (AST) Received: from hotmail.com ([65.55.136.82]) by bay0-omc3-s5.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Tue, 6 Feb 2007 13:55:56 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 6 Feb 2007 13:55:55 -0800 Message-ID: Received: from 65.55.136.123 by by131fd.bay131.hotmail.msn.com with HTTP; Tue, 06 Feb 2007 21:55:50 GMT X-Originating-IP: [67.116.31.14] X-Originating-Email: [skarthi98@hotmail.com] X-Sender: skarthi98@hotmail.com In-Reply-To: <003b01c74a39$0b8252b0$9b0014ac@wbaus090> From: "Karthikeyan Sundaram" To: phillip.smith@weatherbeeta.com.au, pgsql-admin@postgresql.org Subject: Re: how to add a new data partition Date: Tue, 06 Feb 2007 13:55:50 -0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 06 Feb 2007 21:55:55.0751 (UTC) FILETIME=[93DA7F70:01C74A39] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.688 tagged_above=0 required=5 tests=AWL, BAYES_20, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, MSGID_FROM_MTA_HEADER, SPF_PASS X-Spam-Level: X-Archive-Number: 200702/86 X-Sequence-Number: 24551 Hi Philip, Thanks for the reply. Our DB grows very fast. Hence I don't want to move the exisisting data dir. If I move my data file to the new partition, I will face the same issue in another month instead of week. My requirement is to keep the old data directory along with the new partition. In Oracle, we can tell the alter database add data file '/new partition' so the the new partition will take into effect along with the old one. Is there a similar way in postgres? Regards skarthi >From: "Phillip Smith" >To: "'Karthikeyan Sundaram'" >, >Subject: Re: [ADMIN] how to add a new data partition >Date: Wed, 7 Feb 2007 08:52:06 +1100 > >One option if you can have the DB offline for a little while: > >1) Shutdown Postgres >2) Move your current data directory to the new partition >3) Update your PGDATA variable, and any scripts that reference it to >reflect >the new data path. You might also like to symlink the old data dir to the >new one. >4) Restart Postgres. pg_ctl -D /new/path/to/data start > >That's worked for me several time before. > >Cheers, >-p > >-----Original Message----- >From: pgsql-admin-owner@postgresql.org >[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Karthikeyan Sundaram >Sent: Wednesday, 7 February 2007 08:46 >To: pgsql-admin@postgresql.org >Subject: [ADMIN] how to add a new data partition > >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. > > Did anybody faced this problem and how did you resolve. Please share >your > >thoughts. > > >Regards >skarthi > >_________________________________________________________________ >Talk now to your Hotmail contacts with Windows Live Messenger. >http://get.live.com/messenger/overview > > >---------------------------(end of broadcast)--------------------------- >TIP 4: Have you searched our list archives? > > http://archives.postgresql.org > > >*******************Confidentiality and Privilege Notice******************* > >The material contained in this message is privileged and confidential to >the addressee. If you are not the addressee indicated in this message or >responsible for delivery of the message to such person, you may not copy >or deliver this message to anyone, and you should destroy it and kindly >notify the sender by reply email. > >Information in this message that does not relate to the official business >of Weatherbeeta must be treated as neither given nor endorsed by >Weatherbeeta. >Weatherbeeta, its employees, contractors or associates shall not be liable >for direct, indirect or consequential loss arising from transmission of >this >message or any attachments > >---------------------------(end of broadcast)--------------------------- >TIP 5: don't forget to increase your free space map settings _________________________________________________________________ Valentine’s Day -- Shop for gifts that spell L-O-V-E at MSN Shopping http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcode=wlmtagline