]> 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:03 +0000 (11:19 +0300)
commit9b8ed0f52bffceaccf6fa650ffe482e7da20fbf2
treedb401956abdfb2cc20c16b530d45c03316194b6e
parentb6d8d2073f228d9f7198f1f9826d8f6ab643c219
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