Re: find table name

From: greg(at)turnstep(dot)com
To: pgsql-admin(at)postgresql(dot)org
Cc: ashok(at)kalculate(dot)com
Subject: Re: find table name
Date: 2003-12-07 13:12:15
Message-ID: 33c87e018d223ce377b71dfee30dc871@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


-----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(at)turnstep(dot)com
PGP Key: 0x14964AC8 200312070810

-----BEGIN PGP SIGNATURE-----

iD8DBQE/0yb5vJuQZxSWSsgRAoOMAJ9FZsojXzvCVgrM6Tv0B3f+eI0k8QCg6X8C
fqQi82DmYdZduq4lwADIou0=
=92w+
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message greg 2003-12-07 13:22:01 Re: insert & update query
Previous Message Alan Graham 2003-12-07 09:16:30 Re: Trigger to call an external program