Another fix to relmapper race condition.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 5956795cb5befdc7b5dab3e1e781b74fbc3590e8
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2021-06-24T08:19:44Z
Releases: 9.6.23
Another fix to relmapper race condition.

In previous commit, I missed that relmap_redo() was also not acquiring the
RelationMappingLock. Thanks to Thomas Munro for pointing that out.

Backpatch-through: 9.6, like previous commit.
Discussion: https://www.postgresql.org/message-id/CA%2BhUKGLev%3DPpOSaL3WRZgOvgk217et%2BbxeJcRr4eR-NttP1F6Q%40mail.gmail.com

Files

PathChange+/−
src/backend/utils/cache/relmapper.c modified +3 −2

Discussion