pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedDetermining object name from filenode
2+ messages / 2 participants
[nested] [flat]
* Determining object name from filenode
@ 2006-07-14 00:01 Benjamin Krajmalnik <kraj@illumen.com>
0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Krajmalnik @ 2006-07-14 00:01 UTC (permalink / raw)
To: pgsql-admin
Is there a way to determine the name of an object based on the filenode
number?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Determining object name from filenode
@ 2006-07-14 01:47 Michael Fuhr <mike@fuhr.org>
parent: Benjamin Krajmalnik <kraj@illumen.com>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Fuhr @ 2006-07-14 01:47 UTC (permalink / raw)
To: Benjamin Krajmalnik <kraj@illumen.com>; +Cc: pgsql-admin
On Thu, Jul 13, 2006 at 06:01:34PM -0600, Benjamin Krajmalnik wrote:
> Is there a way to determine the name of an object based on the filenode
> number?
Use contrib/oid2name or make queries using pg_database.oid and
pg_class.relfilenode. For example, suppose you have the file
$PGDATA/base/16388/640244:
oid2name | grep 16388
oid2name -d dbname -f 640244
or
SELECT datname FROM pg_database WHERE oid = 16388;
\c dbname
SELECT relname FROM pg_class WHERE relfilenode = 640244;
--
Michael Fuhr
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-07-14 01:47 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-07-14 00:01 Determining object name from filenode Benjamin Krajmalnik <kraj@illumen.com>
2006-07-14 01:47 ` Michael Fuhr <mike@fuhr.org>
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