aboutsummaryrefslogtreecommitdiff
path: root/src/common/jsonapi.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2022-06-21 08:07:43 +0530
committerAmit Kapila <akapila@postgresql.org>2022-06-21 08:07:43 +0530
commit26b3455afaa968fb48d0e468528d79de56624559 (patch)
treed63dcf1fc5453e2f325f1f9ed47228f507803da2 /src/common/jsonapi.c
parent2253f5b49748ff7b48ccc67260c84cbca99db688 (diff)
downloadpostgresql-26b3455afaa968fb48d0e468528d79de56624559.tar.gz
postgresql-26b3455afaa968fb48d0e468528d79de56624559.zip
Fix partition table's REPLICA IDENTITY checking on the subscriber.
In logical replication, we will check if the target table on the subscriber is updatable by comparing the replica identity of the table on the publisher with the table on the subscriber. When the target table is a partitioned table, we only check its replica identity but not for the partition tables. This leads to assertion failure while applying changes for update/delete as we expect those to succeed only when the corresponding partition table has a primary key or has a replica identity defined. Fix it by checking the replica identity of the partition table while applying changes. Reported-by: Shi Yu Author: Shi Yu, Hou Zhijie 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/common/jsonapi.c')
0 files changed, 0 insertions, 0 deletions