Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
feat: return info on create slot of replication #1335
The CREATE_REPLICATION_SLOT replication command returns the following info: slot_name, consistent_point, snapshot_name, output_plugin.
This info can be valuable, in particular, snapshot_name is exported on the logical slot creation to allow a consistent snapshot in some uses cases that require it.
A new class ReplicationSlotInfo is being returned now to have easy access to the values.
New Feature Submissions:
+1 for this feature. It is very useful for this flow:
Now you can query the database to get a consistent view in your application, and consume the replication slow to update that view accordingly.
@@ Coverage Diff @@ ## master #1335 +/- ## ============================================ + Coverage 68.58% 68.61% +0.02% - Complexity 3883 3888 +5 ============================================ Files 178 179 +1 Lines 16205 16239 +34 Branches 2646 2650 +4 ============================================ + Hits 11114 11142 +28 - Misses 3860 3861 +1 - Partials 1231 1236 +5