pg_filenode_relation()

A function which finds the relation associated with a given tablespace and filenode

pg_filenode_relation() is a system function which finds the relation associated with a given tablespace and filenode.

pg_filenode_relation() was added in PostgreSQL 9.4.

Change history

Examples

postgres=# SELECT pg_filenode_relation(0, 16499);
 pg_filenode_relation 
----------------------
 foo
(1 row)

See filenode for a fuller example.

Categories

Data directory, PostgreSQL internals, System function

See also

filenode, pg_relation_filenode(), pg_relation_filepath()