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 F05AED1B438 for ; Mon, 8 Dec 2003 09:33:22 +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 83922-05 for ; Mon, 8 Dec 2003 05:32:53 -0400 (AST) Received: from ecbull20.frec.bull.fr (ecbull20.frec.bull.fr [129.183.4.3]) by svr1.postgresql.org (Postfix) with ESMTP id 04731D1BA62 for ; Mon, 8 Dec 2003 05:32:48 -0400 (AST) Received: from ecn002.frec.bull.fr (ecn002.frec.bull.fr [129.183.4.6]) by ecbull20.frec.bull.fr (8.9.2/8.9.1) with ESMTP id KAA17918; Mon, 8 Dec 2003 10:33:44 +0100 Received: from BULL.NET ([129.183.148.134]) by ecn002.frec.bull.fr (Lotus Domino Release 5.0.12) with ESMTP id 2003120810371768:142 ; Mon, 8 Dec 2003 10:37:17 +0100 Message-ID: <3FD44553.5B69CDA1@BULL.NET> Date: Mon, 08 Dec 2003 10:33:14 +0100 From: Thierry Missimilly Organization: BSIS/R&D X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: fr,en MIME-Version: 1.0 To: greg@turnstep.com Cc: pgsql-admin@postgresql.org, ashok@kalculate.com Subject: Re: find table name References: <33c87e018d223ce377b71dfee30dc871@biglumber.com> X-MIMETrack: Itemize by SMTP Server on ECN002/FR/BULL(Release 5.0.12 |February 13, 2003) at 08/12/2003 10:37:17, Serialize by Router on ECN002/FR/BULL(Release 5.0.12 |February 13, 2003) at 08/12/2003 10:37:24, Serialize complete at 08/12/2003 10:37:24 Content-Type: multipart/mixed; boundary="------------9615176E70A56C0592839665" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/81 X-Sequence-Number: 11589 This is a multi-part message in MIME format. --------------9615176E70A56C0592839665 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi the list, I used to run oid2name to find the relation between database names and .../data/base/ but i'm interested also to identify relation between table names, index names and files number as would try to decrease Wait I/O by setting tables on one disk and indexes on another one. The tables pg_class and pg_index do not give the symbolic name with the "numbers". Thierry Missimilly. greg@turnstep.com wrote: > -----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----- > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org --------------9615176E70A56C0592839665 Content-Type: text/x-vcard; charset=us-ascii; name="THIERRY.MISSIMILLY.vcf" Content-Description: Card for Thierry Missimilly Content-Disposition: attachment; filename="THIERRY.MISSIMILLY.vcf" Content-Transfer-Encoding: 7bit begin:vcard n:Missimilly;Thierry tel;fax:+33 (0)4 76 29 78 78 tel;work:+33 (0)4 76 29 74 54 x-mozilla-html:FALSE url:http:\\www.bull.com org:BIS/R&D adr:;;Bull SA, 1, rue de provence - BP 208;ECHIROLLES;;38432;FRANCE version:2.1 email;internet:Thierry.Missimilly@bull.net x-mozilla-cpt:;-18184 fn:Thierry Missimilly end:vcard --------------9615176E70A56C0592839665--