]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix subscriber invalid memory access on DDL.
authorAmit Kapila <akapila@postgresql.org>
Mon, 16 Dec 2019 09:53:46 +0000 (15:23 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 18 Dec 2019 02:27:01 +0000 (07:57 +0530)
commitc74111d8bd6853b9944d004706dcc0cea2f2a25a
tree7b756a952e594e98af53e4f162da053f2acddc3d
parent35c01529b8c9d8f168379639b4f37227d768d313
Fix subscriber invalid memory access on DDL.

This patch allows building the local relmap cache for a subscribed
relation after processing pending invalidation messages and potential
relcache updates.  Without this, the attributes in the local cache don't
tally with the updated relcache entry leading to invalid memory access.

Reported-by Jehan-Guillaume de Rorthais
Author: Jehan-Guillaume de Rorthais and Vignesh C
Reviewed-by: Amit Kapila
Backpatch-through: 10
Discussion: https://postgr.es/m/20191025175929.7e90dbf5@firost
src/backend/replication/logical/relation.c