pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Browne <cbbrowne@acm.org>
To: pgsql-admin@postgresql.org
Subject: Re: How to find data directory
Date: Sun, 18 Dec 2005 21:56:39 -0500
Message-ID: <601x09n6ag.fsf@dba2.int.libertyrms.com> (raw)
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>

ken@scottshill.com (Ken Hill) writes:
> That works nice. It shows my data directory in
> '/var/lib/postgresql/7.4/main'. When I do an ls command, I get:
>
> $ sudo ls /var/lib/postgresql/7.4/main
> base    pg_clog      pg_ident.conf  pg_xlog          postmaster.opts
> root.crt
> global  pg_hba.conf  PG_VERSION     postgresql.conf  postmaster.pid
>
> 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).

They'll be in a subdirectory; the thing is, tables and databases are
not named _by name_.

The filenames are the OID numbers associated with either databases
(see pg_catalog.pg_database) or tables (see pg_catalog.pg_class).
-- 
let name="cbbrowne" and tld="ntlug.org" in String.concat "@" [name;tld];;
http://cbbrowne.com/info/unix.html
"The Linux  philosophy is laugh in  the face of  danger.  Oops.  Wrong
One.  'Do it yourself.'  That's it."  -- Linus Torvalds



view thread (12+ messages)  latest in thread

Message-ID: <601x09n6ag.fsf@dba2.int.libertyrms.com>
Permalink:  ../601x09n6ag.fsf@dba2.int.libertyrms.com/
Also on:    postgresql.org/message-id/601x09n6ag.fsf@dba2.int.libertyrms.com

 · 

reply

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: cbbrowne@acm.org
  Subject: Re: How to find data directory
  In-Reply-To: <601x09n6ag.fsf@dba2.int.libertyrms.com>
  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> <601x09n6ag.fsf@dba2.int.libertyrms.com>

* 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