]> 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:34 +0000 (11:19 +0300)
commit8b01a403c5cc4e070107bea04e8e285151a0a073
treeb403fdadb9ff2bc633e7cf07d55ebbfa614c5374
parentcaac1965077ffd995dfbe9facf88c05afa868c92
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