diff options
author | Amit Kapila <akapila@postgresql.org> | 2022-06-15 09:52:12 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2022-06-15 09:52:12 +0530 |
commit | 5a97b1325453d641a795710a92b233c665b662b1 (patch) | |
tree | 3e614dbd5cffbc1812e3125d8659d4e01e961450 /src/backend/access/gist/gistproc.c | |
parent | a3ff08e0b08dbfeb777ccfa8f13ebaa95d064c04 (diff) | |
download | postgresql-5a97b1325453d641a795710a92b233c665b662b1.tar.gz postgresql-5a97b1325453d641a795710a92b233c665b662b1.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/gistproc.c')
0 files changed, 0 insertions, 0 deletions