Re: PGDATA - Mailing list pgsql-general

From Ragnar
Subject Re: PGDATA
Date
Msg-id 1164539606.27070.20.camel@localhost.localdomain
Whole thread Raw
In response to Re: PGDATA  ("sasan3@gmail.com" <sasan3@gmail.com>)
List pgsql-general
On fös, 2006-11-24 at 16:14 -0800, sasan3@gmail.com wrote:
>
> Well.. you are correct!
> After studying the contents of "/etc/init.d/postfresql", I put
> "PGDATA=/home3/mylargedisk/data" in "/etc/sysconfig/pgsql/postgresql"
> and it now works.
>
> So what the ..... is this PGDATA!!!!!! It must be a trivial concept
> cause nobody else is worried about how it works!!  And How do I get
> each database to be in a different directory?!!

are you looking for:

  CREATE TABLESPACE myts LOCATION '/foo';
  CREATE DATABASE mydb WITH TABLESPACE=myts;

?

gnari



pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: Development of cross-platform GUI for Open Source DBs
Next
From: "Thomas H."
Date:
Subject: have pg_restore create a new database?