pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: greg@turnstep.com
To: pgsql-admin@postgresql.org
Cc: ashok@kalculate.com
Subject: Re: find table name
Date: Sun,  7 Dec 2003 13:12:15 -0000
Message-ID: <33c87e018d223ce377b71dfee30dc871@biglumber.com> (raw)
In-Reply-To: <1070710450.1265.7.camel@chi>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
 
> In postgresql  all databases are stored in /data/base directory in
> numbers form and all the related tables with that database are stored in
> that directory again in numbers form.
> so there is any command or query to see the original table names.
> just like:-  select * from pg_stat_database; for databases.
 
You can find the mapping between the "numbers" on disk and the tables by
looking at the "relfilenode", "relname" and "relkind" columns of the
pg_class table. However, it is best to not mess with those files at
all. What are you trying to do?
 
- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200312070810
 
-----BEGIN PGP SIGNATURE-----
 
iD8DBQE/0yb5vJuQZxSWSsgRAoOMAJ9FZsojXzvCVgrM6Tv0B3f+eI0k8QCg6X8C
fqQi82DmYdZduq4lwADIou0=
=92w+
-----END PGP SIGNATURE-----





view thread (4+ messages)  latest in thread

Message-ID: <33c87e018d223ce377b71dfee30dc871@biglumber.com>
Permalink:  ../33c87e018d223ce377b71dfee30dc871@biglumber.com/
Also on:    postgresql.org/message-id/33c87e018d223ce377b71dfee30dc871@biglumber.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: greg@turnstep.com, ashok@kalculate.com
  Subject: Re: find table name
  In-Reply-To: <33c87e018d223ce377b71dfee30dc871@biglumber.com>
  References: <1070710450.1265.7.camel@chi> <33c87e018d223ce377b71dfee30dc871@biglumber.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