X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 83B1ED1B556 for ; Sun, 26 Oct 2003 16:45:25 +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 62831-04 for ; Sun, 26 Oct 2003 12:44:54 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id E9903D1B560 for ; Sun, 26 Oct 2003 12:44:53 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id h9QGiqNu021520 for ; Sun, 26 Oct 2003 16:44:52 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h9QGhWZr021355 for pgsql-admin@postgresql.org; Sun, 26 Oct 2003 16:43:32 GMT Date: Sun, 26 Oct 2003 17:46:31 +0100 From: Oli Sennhauser User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 X-Newsgroups: comp.databases.postgresql.admin Subject: Relation from database to filename of e.g. table Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Original-NNTP-Posting-Host: 81.62.211.112 Message-ID: <3f9bf9b0_2@news.bluewin.ch> Organization: Bluewin AG Lines: 19 Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/306 X-Sequence-Number: 10867 Hello Admins Can someone please tell me, which relation gives me the link between a database and a table? I want to find out, which table belongs to which database in a cluster. Something like SELECT d.datname, c.relname FROM pg_database d, pg_class c, pg_xxx x WHERE d.oid = x.oid AND x.oid = c.relfilenode But I did not find the pg_xxx. Thanks Oli