Skip to content

More details about troubleshooting inactive replication slot

Toon Claes requested to merge tc-geo-dont-blindly-delete-replication-slot into master

What does this MR do?

When a postgresql replication slot is not active, one should not just delete it. Instead ask themselves, should it be active and if so, why isn't it active.

If they intent to not use it, they can remove it.

Why was this MR needed?

Confusion in a customer ticket: ZD

Screenshots (if relevant)

gitlabhq_production=# SELECT * FROM pg_replication_slots;
     slot_name     | plugin | slot_type | datoid | database | active | active_pid | xmin | catalog_xmin | restart_lsn | confirmed_flush_lsn 
-------------------+--------+-----------+--------+----------+--------+------------+------+--------------+-------------+---------------------
 secondary_example |        | physical  |        |          | f      |            |      |              | 52/B8000168 | 
(1 row)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

/

cc @ckatanda

Merge request reports