From: Devrim GUNDUZ <devrim@commandprompt.com>
To: Ken Hill <ken@scottshill.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to find data directory
Date: Mon, 19 Dec 2005 03:01:01 +0200 (EET)
Message-ID: <Pine.LNX.4.63.0512190250550.28030@evim.gunduz.org> (raw)
In-Reply-To: <1134952457.7555.5.camel@localhost.localdomain>
References: <1134772264.7276.2.camel@localhost.localdomain>
<Pine.LNX.4.64.0512161549190.11428@glacier.frostconsultingllc.com>
<1134784056.7354.2.camel@localhost.localdomain>
<Pine.LNX.4.64.0512161933170.28807@discord.dyndns.org>
<1134952457.7555.5.camel@localhost.localdomain>
Hi,
On Sun, 18 Dec 2005, Ken Hill wrote:
> I have created two database named 'testdb' and 'csalgorithm'. How do I
> find these databases? I was expecting the databases to be subdirectories
> under the database directory (e.g. /var/lib/postresql/7.4/main/testdb
> and /var/lib/postgresql/7.4/main/csalgorithm).
First run these commands:
SELECT oid,datname FROM pg_database;
This will prompt you the oid and the corresponding database name. Say the
oid for the csalgorithm is 41030. Now cd to
/var/lib/postgresql/7.4/main/base/41030
But don't expect to see ascii database format there. :)
Regards,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: devrim@commandprompt.com, ken@scottshill.com
Subject: Re: How to find data directory
In-Reply-To: <Pine.LNX.4.63.0512190250550.28030@evim.gunduz.org>
References: <1134772264.7276.2.camel@localhost.localdomain> <Pine.LNX.4.64.0512161549190.11428@glacier.frostconsultingllc.com> <1134784056.7354.2.camel@localhost.localdomain> <Pine.LNX.4.64.0512161933170.28807@discord.dyndns.org> <1134952457.7555.5.camel@localhost.localdomain> <Pine.LNX.4.63.0512190250550.28030@evim.gunduz.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox