I have been trying to build a pipeline using logical decoding of postgres. However, I am a little confused. Please find below the questions I have
I am using postgres10
Please share your thoughts on this
Question 1: By default, CREATE SUBSCRIPTION
will create a logical replication slot.
Question 2: Use two replication slots with appropriate plugins. The one that is used to replicate to a table is automatically created when you create a subscription. For writing to a file, you'd have to create a replication slot explicitly and specific an appropriate plugin (I don't know if such a plugin exists, you may have to write it).
Question 3: Yes.
I would use at least v11 for logical replication because of the limitations in v10.