From: Oli Sennhauser <oli.sennhauser@bluewin.ch>
To: pgsql-admin@postgresql.org
Subject: Relation from database to filename of e.g. table
Date: Sun, 26 Oct 2003 17:46:31 +0100
Message-ID: <3f9bf9b0_2@news.bluewin.ch> (raw)
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
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: oli.sennhauser@bluewin.ch
Subject: Re: Relation from database to filename of e.g. table
In-Reply-To: <3f9bf9b0_2@news.bluewin.ch>
References: <3f9bf9b0_2@news.bluewin.ch>
* 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