aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2022-06-15 10:16:35 +0530
committerAmit Kapila <akapila@postgresql.org>2022-06-15 10:16:35 +0530
commit16f5a8da76f21576987790df828082cb7bb1bdad (patch)
treeeab3a5738328bf1267d044698ee32e1df3e7334f /src/backend/access/gist
parent12b8fb34a933456ca762c98bc2047e608b7a1079 (diff)
downloadpostgresql-16f5a8da76f21576987790df828082cb7bb1bdad.tar.gz
postgresql-16f5a8da76f21576987790df828082cb7bb1bdad.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/backend/access/gist')
0 files changed, 0 insertions, 0 deletions