RE: Postgresql12: ERROR: Could not read from file "pg_act/02 F 4" at offset 253952: read too few bytes - Mailing list pgsql-bugs

From Orishich Aleksey
Subject RE: Postgresql12: ERROR: Could not read from file "pg_act/02 F 4" at offset 253952: read too few bytes
Date
Msg-id 44f273afed1e4ba3ba75b056eb65e829@cft.ru
Whole thread Raw
In response to Postgresql12: ERROR: Could not read from file "pg_act/02 F 4" at offset 253952: read too few bytes  (Orishich Aleksey <a.orishich@cft.ru>)
Responses Re: Postgresql12: ERROR: Could not read from file "pg_act/02 F 4" at offset 253952: read too few bytes  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-bugs

Hello.

 

Do you have a result on my problem? This is critical for us.

 

 

From: Orishich Aleksey <a.orishich@cft.ru>
Sent: Wednesday, July 14, 2021 10:03 AM
To: pgsql-bugs@lists.postgresql.org
Subject: [MASSMAIL] Postgresql12: ERROR: Could not read from file "pg_act/02 F 4" at offset 253952: read too few bytes

 

Hello.

 

While the postgres database was running, we encountered the following error:

ERROR: could not access status of transaction 793754117 Detail: Could not read from file "pg_act/02 F 4" at offset 253952: read too few bytes.

The pg_act/02 F 4 file on the main database had a different size from other files. At the same time, the pg_xact/02F4 file on the backup database had a standard size of 256Kb. There are no errors writing to the file system. No errors were found in the postgres logs either.

After this error occurred, working with the main database was impossible, and we had to switch to the backup database.

What could have caused this error in postgres? Was it possible to restore the database without switching to a backup? How can I prevent such errors from occurring in the future? How to correctly troubleshooting the cause of this error?

Postgres version: 12.1-2

OS: Oracle Linux Server release 7.6

 

With Regards,

Aleksey.

pgsql-bugs by date:

Previous
From: Thomas Munro
Date:
Subject: Re: BUG #17116: Assert failed in SerialSetActiveSerXmin() on commit of parallelized serializable transaction
Next
From: Daniel Gustafsson
Date:
Subject: Re: Postgresql12: ERROR: Could not read from file "pg_act/02 F 4" at offset 253952: read too few bytes