Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 29A699FB290 for ; Tue, 6 Feb 2007 17:52:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 22521-03 for ; Tue, 6 Feb 2007 17:52:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from weatherbeeta.com.au (218-214-212-153.people.net.au [218.214.212.153]) by postgresql.org (Postfix) with SMTP id 540719FA6AF for ; Tue, 6 Feb 2007 17:52:10 -0400 (AST) Received: (qmail 22574 invoked from network); 6 Feb 2007 21:52:08 -0000 X-NetworkBox-HamSign: 0101;OUT;wbeetaau1;f222b511037f0b1e2d7699b131ace9ec; Received: from mail.weatherbeeta.com.au (10.10.0.2) by network-box.weatherbeeta.com.au with SMTP; 6 Feb 2007 21:52:08 -0000 Received: (qmail 5795 invoked by uid 1166); 7 Feb 2007 08:52:08 +1100 Received: from 172.20.0.155 by mail.weatherbeeta.com.au (envelope-from , uid 1165) with qmail-scanner-1.25-st-qms (clamdscan: 0.88.6/2315. perlscan: 1.25-st-qms. Clear:RC:1(172.20.0.155):. Processed in 0.234733 secs); 06 Feb 2007 21:52:08 -0000 X-Antivirus-mail.weatherbeeta.com.au-Mail-From: phillip.smith@weatherbeeta.com.au via mail.weatherbeeta.com.au X-Antivirus-mail.weatherbeeta.com.au: 1.25-st-qms (Clear:RC:1(172.20.0.155):. Processed in 0.234733 secs Process 5786) Received: from it-phil.weatherbeeta.com.au (HELO wbaus090) (172.20.0.155) by mail.weatherbeeta.com.au with SMTP; 7 Feb 2007 08:52:07 +1100 From: "Phillip Smith" To: "'Karthikeyan Sundaram'" , Subject: Re: how to add a new data partition Date: Wed, 7 Feb 2007 08:52:06 +1100 Organization: Weatherbeeta Pty Ptd Message-ID: <003b01c74a39$0b8252b0$9b0014ac@wbaus090> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Importance: Normal X-Scanned-By-wbeetaau1: Virus scan performed by network-box X-Scanned-By-wbeetaau1: Scanner file id is wbeetaau1-1170798728.548-22569-000 X-Scanned-By-wbeetaau1: No known viruses found in message (received+scanned in 0.03/0.06 secs) X-Scanned-By-wbeetaau1: Spam-Check-Result: No, hits=0 required=7 tests= autolearn=no version=2.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/85 X-Sequence-Number: 24550 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=20 of space. We have added another HDD of 300GB. Now my question is, how = will=20 I point the database to the new partition along with the old one. Do I = need=20 to create a symbolic link to the exitisting DB? Adding a new tablespace doesn't solve the issue as there are many = tables=20 in the old tablespace. Is there a way to extend the tablespace to the = new=20 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.=20 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