Re: Assertion failure with replication origins and PREPARE TRANSACTIOn
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-12-13T10:53:43Z
Lists: pgsql-hackers
On Mon, Dec 13, 2021 at 03:46:55PM +0530, Amit Kapila wrote: > This is my understanding as well. I think here the point of Sawada-San > is why to have additional for replorigin_session_origin_lsn in prepare > code path? I think the way you have it in your patch is correct as > well but it is probably better to keep the check only based on > replorigin so as to keep this check consistent in all code paths. Well, I don't think that it is a big deal one way or the other, as we'd finish with InvalidXLogRecPtr for the LSN and 0 for the timestamp anyway. If both of you feel that just removing the assertion rather than adding an extra check is better, that's fine by me :) -- Michael
Commits
-
Remove assertion for replication origins in PREPARE TRANSACTION
- 8abb6c27ec75 11.15 landed
- 65af1e842208 12.10 landed
- 3f710fc2b48d 13.6 landed
- 4be3e005e5da 14.2 landed
- ece8c76192fe 15.0 landed