Hi Experts,
We are experiencing what appears to be transaction visibility metadata corruption in a PostgreSQL 12 database. Accessing a specific row consistently fails with an error indicating PostgreSQL cannot access the status of a transaction because the corresponding file in the
pg_xactdirectory is missing (for example,could not open file "pg_xact/XXXX": No such file or directory). A binary search helped isolate the problem to a specific row, while neighboring rows remain accessible. Since PostgreSQL cannot determine the transaction status for that tuple, any query referencing it fails. Additionally, we are unable to export the affected table usingpg_dumporCOPY, as both operations terminate when they encounter the corrupted tuple. Has anyone encountered a similar issue involving missingpg_xactsegments? What recovery options are available besides restoring from a backup, particularly if the goal is to recover as much data as possible from the affected table?
