X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id AFC89D1B48B for ; Sun, 7 Dec 2003 13:12:43 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 45692-08 for ; Sun, 7 Dec 2003 09:12:15 -0400 (AST) Received: from biglumber.com (biglumber.com [207.228.252.42]) by svr1.postgresql.org (Postfix) with SMTP id 8E871D1B486 for ; Sun, 7 Dec 2003 09:12:11 -0400 (AST) Received: (qmail 8871 invoked from network); 7 Dec 2003 13:12:15 -0000 Received: from unknown (HELO localhost) (207.228.252.42) by 0 with SMTP; 7 Dec 2003 13:12:15 -0000 From: greg@turnstep.com To: pgsql-admin@postgresql.org Cc: ashok@kalculate.com Cc: ashok@kalculate.com Subject: Re: find table name X-PGP-Key: 2529 DF6A B8F7 9407 E944 45B4 BC9B 9067 1496 4AC8 X-Request-PGP: http://www.biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 In-Reply-To: <1070710450.1265.7.camel@chi> Date: Sun, 7 Dec 2003 13:12:15 -0000 X-Mailer: JoyMail 1.38 Message-ID: <33c87e018d223ce377b71dfee30dc871@biglumber.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/74 X-Sequence-Number: 11582 -----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-----