]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Another fix to relmapper race condition.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 24 Jun 2021 08:19:03 +0000 (11:19 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 24 Jun 2021 08:19:37 +0000 (11:19 +0300)
commiteb3bd243a24590ddd13d13c3ba8f0fa948903bbf
treea01912d074ef7d7dc0e5816e69a8cbe472996a83
parentc78bb32c19fe0b69d8ce75d6304c2394c4c7cd6b
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
src/backend/utils/cache/relmapper.c