{"id":24297788,"url":"https://github.com/ibarwick/filenode_map_inspect","last_synced_at":"2026-04-22T09:31:32.654Z","repository":{"id":70372102,"uuid":"160890038","full_name":"ibarwick/filenode_map_inspect","owner":"ibarwick","description":"PostgreSQL extension to inspect pg_filenode.map files","archived":false,"fork":false,"pushed_at":"2018-12-08T16:03:20.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T08:57:54.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ibarwick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-08T00:42:43.000Z","updated_at":"2023-03-01T12:02:35.000Z","dependencies_parsed_at":"2023-04-16T05:35:20.821Z","dependency_job_id":null,"html_url":"https://github.com/ibarwick/filenode_map_inspect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ibarwick/filenode_map_inspect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibarwick%2Ffilenode_map_inspect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibarwick%2Ffilenode_map_inspect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibarwick%2Ffilenode_map_inspect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibarwick%2Ffilenode_map_inspect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibarwick","download_url":"https://codeload.github.com/ibarwick/filenode_map_inspect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibarwick%2Ffilenode_map_inspect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32129593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-16T20:29:27.052Z","updated_at":"2026-04-22T09:31:32.648Z","avatar_url":"https://github.com/ibarwick.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"filenode_map_inspect\n====================\n\nA simple extension providing functionality to check and examine\nthe `pg_filenode.map` files present in PostgreSQL.\n\nThis is an experimental extension for educational and diagnostic purposes only.\nUSE AT YOUR OWN RISK!\n\nRequirements\n------------\n\nThis extension will compile with all PostgreSQL versions from 9.0 (where\n`pg_filenode.map` was introduced).\n\nFunctions\n---------\n\n - `filenode_map_check()`: lists the location of all `pg_filenode.map` files\n      present in the database cluster, and verifies their status.\n\n - `filenode_map_list()`:  lists name, oid and filenode of entries in the current\n      database's `pg_filenode.map` file\n\n - `filenode_map_list_global()`:  lists name, oid and filenode entries in the\n      global `pg_filenode.map` file\n\nExamples\n--------\n\nOutput of `filenode_map_check()`:\n\n\tpostgres=# SELECT * FROM filenode_map_check();\n\tWARNING:  could not read file \"base/32774/pg_filenode.map\": read 256 of 512\n\t database  |            file            |       state\n\t-----------+----------------------------+-------------------\n\t postgres  | base/12630/pg_filenode.map | OK\n\t template1 | base/1/pg_filenode.map     | OK\n\t template0 | base/12629/pg_filenode.map | OK\n\t foo       | base/32774/pg_filenode.map | FILE_ACCESS_ERROR\n\t(4 rows)\n\nHere we see the filenode map for database `foo` is incomplete. We could establish\nexactly the same result by attempting to connect to `foo`. The advantage of this\nfunction is that (assuming at least one database can be connected to) it will\npresent an overview of the state of all database `pg_filenode.map` files.\n\nOutput of `filenode_map_list()`:\n\n\trepmgr=# SELECT * FROM filenode_map_list();\n\t\t\t\t  relname              | oid  | filenode\n\t-----------------------------------+------+----------\n\t pg_class                          | 1259 |     1259\n\t pg_attribute                      | 1249 |     1249\n\t pg_proc                           | 1255 |     1255\n\t pg_type                           | 1247 |     1247\n\t pg_toast_1255                     | 2836 |     2836\n\t pg_toast_1255_index               | 2837 |     2837\n\t pg_attribute_relid_attnam_index   | 2658 |     2658\n\t pg_attribute_relid_attnum_index   | 2659 |     2659\n\t pg_class_oid_index                | 2662 |     2662\n\t pg_class_relname_nsp_index        | 2663 |     2663\n\t pg_class_tblspc_relfilenode_index | 3455 |     3455\n\t pg_proc_oid_index                 | 2690 |     2690\n\t pg_proc_proname_args_nsp_index    | 2691 |     2691\n\t pg_type_oid_index                 | 2703 |     2703\n\t pg_type_typname_nsp_index         | 2704 |     2704\n\t(15 rows)\n\n\nNotes\n-----\n\nThe practical utility of this extension is debatable.\n\nIn practice, cases of `pg_filenode.map` corruption appear to be seldom\nand usually self-inflicted.\n\nSee also\n--------\n\n - source code: `src/backend/utils/cache/relmapper.c`\n - [Decoding pg_filenode.map files with pg_filenodemapdata](http://pgeoghegan.blogspot.com/2018/03/decoding-pgfilenodemapdata.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibarwick%2Ffilenode_map_inspect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibarwick%2Ffilenode_map_inspect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibarwick%2Ffilenode_map_inspect/lists"}