X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E3E0253983 for ; Fri, 22 Apr 2005 14:04:03 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 97356-02 for ; Fri, 22 Apr 2005 17:03:54 +0000 (GMT) Received: from koolancexeon.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by svr1.postgresql.org (Postfix) with ESMTP id 490D853995 for ; Fri, 22 Apr 2005 14:03:53 -0300 (ADT) Received: mail.g2switchworks.com 10.10.1.8 from 10.10.1.37 10.10.1.37 via HTTP with MS-WebStorage 6.5.6944 Received: from state.g2switchworks.com by mail.g2switchworks.com; 22 Apr 2005 12:03:53 -0500 Subject: Re: Another Data directory for second database - feasible? From: Scott Marlowe To: "Tomeh, Husam" Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1114189433.13303.65.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 22 Apr 2005 12:03:53 -0500 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/319 X-Sequence-Number: 17332 On Fri, 2005-04-22 at 11:10, Tomeh, Husam wrote: > I have a postgres installation with one database on a server. I'd need > to create another database; however, I'm curious if there's a way to > create the second database in a different directory than the existing > one. Is that feasible and how? Or does postgres only point to one data > directory? Thanks in advance. If you're using 8.0, you can use tablespaces. See: http://www.postgresql.org/docs/8.0/static/manage-ag-tablespaces.html If you're using 7.4 or before, you can use alternate locations. See: http://www.postgresql.org/docs/7.4/static/manage-ag-alternate-locs.html