Some refactoring of logical/worker.c
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 24 Mar 2020 13:00:58 +0000 (14:00 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 24 Mar 2020 14:00:54 +0000 (15:00 +0100)
commit97ee604d9bcedf0066986521a7ee15e3aa87be34
treeef8c211c91264f2fb2d9afba9ca71c40de87a077
parentd40d564c5a920e1121b28463dfed74441cbae5c0
Some refactoring of logical/worker.c

This moves the main operations of apply_handle_{insert|update|delete},
that of inserting, updating, deleting a tuple into/from a given
relation, into corresponding
apply_handle_{insert|update|delete}_internal functions.  This allows
performing those operations on relations that are not directly the
targets of replication, which is something a later patch will use for
targeting partitioned tables.

Author: Amit Langote <amitlangote09@gmail.com>
Reviewed-by: Rafia Sabih <rafia.pghackers@gmail.com>
Reviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/CA+HiwqH=Y85vRK3mOdjEkqFK+E=ST=eQiHdpj43L=_eJMOOznQ@mail.gmail.com
src/backend/replication/logical/worker.c