Re: Datafiles for Databases

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Browne <cbbrowne(at)acm(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Datafiles for Databases
Date: 2003-09-24 16:12:26
Message-ID: 200309241612.h8OGCQG11706@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Christopher Browne wrote:
> In the last exciting episode, sgnerd(at)yahoo(dot)com(dot)sg ("Kumar") wrote:
> > I was looking for a structure like oracle or ms Sql?server in Postgres. What I have expected is individual
> > datafiles for individual databases. But i cant fine such items in the /usr/local/pgsql/data directory.
> >
> > Will the postgres create individual data file for databases?
>
> No. Just as with Oracle, PostgreSQL creates multiple files for each
> database.
>
> > How to get the datafile path of a database?
>
> select oid, datname from pg_database;
>
> The path for database 'datname' will be:
> $PGDATA/base/oid/

See the "Monitoring Disk Space" section in our manuals.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2003-09-24 17:18:37 Re: Especial delimiters caracter
Previous Message Richard Huxton 2003-09-24 15:42:16 Re: using plpgsql outside of functions