Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 523F59FC01A for ; Fri, 22 Jun 2007 15:14:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 03874-06 for ; Fri, 22 Jun 2007 15:14:43 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.181]) by postgresql.org (Postfix) with ESMTP id 2BB149FC29F for ; Fri, 22 Jun 2007 15:14:44 -0300 (ADT) Received: by ik-out-1112.google.com with SMTP id c21so901589ika for ; Fri, 22 Jun 2007 11:14:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=icGh57wPCyIo9ofYaEBz3cbwlOtwJPTsEhxZCxQMurQjNikm24DD7qr4i3d++TO0ql6Q/xovUjCzHe2zhLshLQrDXTBakvBmoJxNitzL6k7KISSluXQiHMmrw5FjW0zvPNjEOHGJBYwdhFXCDUxedi+QTtg972+s9Nk9ROCCT8A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Sez7rbtJK/AwSg/JyYYHL5MvCWbiAi6eiuBsRIL66nlwaIyd+NF+ml9EdiGt89M8Bg5oz8b7ohCsWbIbiR1S96rOeE4i+p9hs5qRsWhKfpk6vvvBOJiikY28cmRwNX+ZBxjsBQyQBs37KcIgdxTI7U3h3SsVYhqEx0nDD6wY+ZU= Received: by 10.78.131.8 with SMTP id e8mr1734260hud.1182536083677; Fri, 22 Jun 2007 11:14:43 -0700 (PDT) Received: by 10.78.201.16 with HTTP; Fri, 22 Jun 2007 11:14:43 -0700 (PDT) Message-ID: <1d219a6f0706221114t25ddf96djf62297a8f1428cc2@mail.gmail.com> Date: Fri, 22 Jun 2007 14:14:43 -0400 From: "Chris Hoover" To: "pgsql-admin@postgresql.org Admin" Subject: How to move a tablespace? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_125656_4897564.1182536083664" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.428 tagged_above=0 required=5 tests=AWL=-0.925, BAYES_50=0.001, HTML_10_20=1.351, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200706/250 X-Sequence-Number: 25918 ------=_Part_125656_4897564.1182536083664 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline How do you correctly move a tablespace? I am thinking this would be the process: 1. Cleanly shutdown Postgres 2. Move tablespace directory and all contents to new location 3. Create a symlink from the new location back to the old location 4. Restart Postgres Would that be correct? Or is there a better way. Thanks, Chris ------=_Part_125656_4897564.1182536083664 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline How do you correctly move a tablespace? 

I am thinking this would be the process:
1.  Cleanly shutdown Postgres
2.  Move tablespace directory and all contents to new location
3.  Create a symlink from the new location back to the old location
4.  Restart Postgres

Would that be correct?  Or is there a better way.

Thanks,

Chris
------=_Part_125656_4897564.1182536083664--