pgsql: Fix subscriber invalid memory access on DDL.

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Fix subscriber invalid memory access on DDL.
Дата
Msg-id E1ihPfD-0008Rl-Jb@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/046830164ee4064623c34930a41c351106338041

Modified Files
--------------
src/backend/replication/logical/relation.c | 38 ++++++++++++++++++++----------
1 file changed, 25 insertions(+), 13 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Doc: Improve readability of options for REINDEX
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Refactor attribute mappings used in logical tuple conversion