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