Avoid unnecessary shared invalidations in ROLLBACK PREPARED

Michael Paquier <michael@paquier.xyz>

Commit: 710796f0542180cca18ee93889da692df642bdf2
Author: Michael Paquier <michael@paquier.xyz>
Date: 2021-08-12T11:12:47Z
Releases: 15.0
Avoid unnecessary shared invalidations in ROLLBACK PREPARED

The performance gain is minimal, but this makes the logic more
consistent with AtEOXact_Inval().  No other invalidation is needed in
this case as PREPARE takes already care of sending any local ones.

Author: Liu Huailing
Reviewed-by: Tom Lane, Michael Paquier
Discussion: https://postgr.es/m/OSZPR01MB6215AA84D71EF2B3D354CF86BE139@OSZPR01MB6215.jpnprd01.prod.outlook.com

Files

PathChange+/−
src/backend/access/transam/twophase.c modified +10 −6

Discussion