]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Avoid unnecessary shared invalidations in ROLLBACK PREPARED
authorMichael Paquier <michael@paquier.xyz>
Thu, 12 Aug 2021 11:12:47 +0000 (20:12 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 12 Aug 2021 11:12:47 +0000 (20:12 +0900)
commit710796f0542180cca18ee93889da692df642bdf2
tree242a175047a7df55c02b0ebe347915b486d9f8d1
parentc3928b467a4f0ed2b0ef21a33848e9fcdade37b4
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
src/backend/access/transam/twophase.c