Re: [bug fix] prepared transaction might be lost when max_prepared_transactions is zero on the subscriber
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: shveta malik <shveta.malik@gmail.com>
Cc: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>, "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2024-08-20T06:06:45Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Don't advance origin during apply failure.
- 1528b0d899d6 19 (unreleased) landed
- 2f7ffe124a9b 18.2 landed
- 63a65adf4d8e 16.12 landed
- 0ed8f1afb15f 17.8 landed
- 3f28b2fcac33 18.0 landed
- 915aafe82a7c 17.0 landed
- b39c5272c1d2 16.5 landed
-
Perform apply of large transactions by parallel workers.
- 216a784829c2 16.0 cited
Attachments
- v5-0001-Don-t-advance-origin-during-apply-failure.patch (application/octet-stream) patch v5-0001
On Wed, Aug 14, 2024 at 10:26 AM shveta malik <shveta.malik@gmail.com> wrote: > > > > > Thanks for the detailed analysis. I agree with your analysis that we > > need to reset the origin information for the shutdown path to avoid it > > being advanced incorrectly. However, the patch doesn't have sufficient > > comments to explain why we need to reset it for both the ERROR and > > Shutdown paths. Can we improve the comments in the patch? > > > > Also, for the ERROR path, can we reset the origin information in > > apply_error_callback()? > > Please find v4 attached. Addressed comments in that. > The patch looks mostly good to me. I have slightly changed a few of the comments in the attached. What do you think of the attached? -- With Regards, Amit Kapila.