pgsql: Fix multiple crasher bugs in partitioned-table replication logic

2021-06-11 Thread Tom Lane
Fix multiple crasher bugs in partitioned-table replication logic. apply_handle_tuple_routing(), having detected and reported that the tuple it needed to update didn't exist, tried to update that tuple anyway, leading to a null-pointer dereference. logicalrep_partition_open() failed to ensure that

pgsql: Fix multiple crasher bugs in partitioned-table replication logic

2021-06-11 Thread Tom Lane
Fix multiple crasher bugs in partitioned-table replication logic. apply_handle_tuple_routing(), having detected and reported that the tuple it needed to update didn't exist, tried to update that tuple anyway, leading to a null-pointer dereference. logicalrep_partition_open() failed to ensure that