patch to ensure logical decoding errors early

Dave Cramer <davecramer@gmail.com>

From: Dave Cramer <davecramer@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2018-07-31T18:51:12Z
Lists: pgsql-hackers

Attachments

This patch does 2 things

1) Ensure that when the slot is created
with pg_create_physical_replication_slot if the output plugin does not
exist it will error.

2) Currently when the decoding context is created and the output plugin
does not exist the protocol will respond with CopyDone. This patch will
return an error instead and abort the copy connection.



Dave Cramer

Commits

  1. Fix logical replication slot initialization

  2. Ability to advance replication slots