Skip to content

filenode_map_inspect

Check and examine pg_filenode.map files

filenode_map_inspect · Check and examine pg_filenode.map files

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100417filenode_map_inspectfilenode_map_inspect0.1ADMINUnknownC

PostgreSQL · 10, 11, 12, 13, 14, 15, 16, 17, 18

Usage

Sources:

filenode_map_inspect 0.1 reads PostgreSQL pg_filenode.map files for cluster-wide diagnostics. It can identify unreadable or incomplete mapping files and list mapped catalog objects, but it neither repairs corruption nor replaces normal recovery procedures.

Core Workflow

CREATE EXTENSION filenode_map_inspect;

SELECT * FROM filenode_map_check();
SELECT * FROM filenode_map_list();
SELECT * FROM filenode_map_list_global();
  • filenode_map_check() locates database and global map files and reports each file’s state.
  • filenode_map_list() returns relation name, OID, and filenode entries for the current database.
  • filenode_map_list_global() returns the corresponding entries from the global map.

Operational Boundaries

The upstream project labels the extension experimental and intended only for education and diagnostics. It reads server-side cluster files, so install it and grant execution only to trusted administrators. A reported error is evidence for further investigation; preserve the data directory and use supported backup, restore, or recovery procedures rather than editing mapping files by hand.

Table reader