I have a postgresql source database where I have enabled logical replication to replicate data in another postgresql destination database. Publication contains only one table which is arround 3MBs of data configured to replicate all the columns. In this table, no new records are beeing generated, updated or deleted. At the moment there is a problem and subscription is not working.
I insepected the replication slot with the following statement
SELECT
slot_name,
(pg_current_wal_lsn() - confirmed_flush_lsn) AS lag
FROM pg_replication_slots;
The above query is getting increased every second, in two days went from 1MB to 10GBs, is there any explanation why this is getting increased if there are no transactions?
Is this number related to the current wal size of database?
VACUUMrunning.