Re: HOT chain validation in verify_heapam()
Himanshu Upadhyaya <upadhyaya.himanshu@gmail.com>
From: Himanshu Upadhyaya <upadhyaya.himanshu@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Aleksander Alekseev <aleksander@timescale.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>,
Andres Freund <andres@anarazel.de>
Date: 2023-02-05T08:57:09Z
Lists: pgsql-hackers
Attachments
- v9-0001-Implement-HOT-chain-validation-in-verify_heapam.patch (application/x-patch) patch v9-0001
On Tue, Jan 31, 2023 at 7:20 PM Robert Haas <robertmhaas@gmail.com> wrote: > On Mon, Jan 30, 2023 at 8:24 AM Himanshu Upadhyaya > <upadhyaya.himanshu@gmail.com> wrote: > > Before this we stop the node by "$node->stop;" and then only we progress > to > > manual corruption. This will abort all running/in-progress transactions. > > So, if we create an in-progress transaction and comment "$node->stop;" > > then somehow all the code that we have for manual corruption does not > work. > > > > I think it is required to stop the server and then only proceed for > manual corruption? > > If this is the case then please suggest if there is a way to get an > in-progress transaction > > that we can use for manual corruption. > > How about using a prepared transaction? > > Thanks, yes it's working fine with Prepared Transaction. Please find attached the v9 patch incorporating all the review comments. -- Regards, Himanshu Upadhyaya EnterpriseDB: http://www.enterprisedb.com
Commits
-
amcheck: Generalize one of the recently-added update chain checks.
- c87aff065c33 16.0 landed
-
amcheck: Tighten up validation of redirect line pointers.
- 80d5e3a61551 16.0 landed
-
amcheck: Fix verify_heapam for tuples where xmin or xmax is 0.
- 8fd5aa76c367 14.8 landed
- 701ec5557968 15.3 landed
- e88754a1965c 16.0 landed
-
amcheck: Fix a few bugs in new update chain validation.
- 949e2e7c4f68 16.0 landed
-
Fix new test case to work on (some?) big-endian architectures.
- c75a623304bc 16.0 landed
-
Don't test HEAP_XMAX_INVALID when freezing xmax.
- 02d647bbf057 16.0 landed