aboutsummaryrefslogtreecommitdiff
path: root/src/include/common/jsonapi.h
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2022-06-15 09:59:52 +0530
committerAmit Kapila <akapila@postgresql.org>2022-06-15 09:59:52 +0530
commitd457cb4e8a5e25fe16420cb91cb8450d8fca49d3 (patch)
tree13e39353c67e49689692e5c6a7f7739a4d5a8eeb /src/include/common/jsonapi.h
parent7bc21ed8c8e755ef6fe41dae60c198fcc9c9ee56 (diff)
downloadpostgresql-d457cb4e8a5e25fe16420cb91cb8450d8fca49d3.tar.gz
postgresql-d457cb4e8a5e25fe16420cb91cb8450d8fca49d3.zip
Fix cache look-up failures while applying changes in logical replication.
While building a new attrmap which maps partition attribute numbers to remoterel's, we incorrectly update the map for dropped column attributes. Later, it caused cache look-up failure when we tried to use the map to fetch the information about attributes. This also fixes the partition map cache invalidation which was using the wrong type cast to fetch the entry. We were using stale partition map entry after invalidation which leads to the assertion or cache look-up failure. Reported-by: Shi Yu Author: Hou Zhijie, Shi Yu Reviewed-by: Amit Langote, Amit Kapila Backpatch-through: 13, where it was introduced Discussion: https://postgr.es/m/OSZPR01MB6310F46CD425A967E4AEF736FDA49@OSZPR01MB6310.jpnprd01.prod.outlook.com
Diffstat (limited to 'src/include/common/jsonapi.h')
0 files changed, 0 insertions, 0 deletions