Hi Jay, On Wed, Feb 27, 2019 at 07:40:26AM -0500, John Scalia wrote: > Hello, folks, > > Yesterday, I had a small file system fill up, due to some logical > replication testing we had been performing. We had been testing IBM’s IIDR > system and apparently it had built a logical replication slot on my server. > When the test was completed, nobody removed the slot, so WAL segments > stopped being dropped. Now I can understand the difficulty separating what > physical versus logical replication needs from the WAL segments, but as > logical replication is database specific not cluster wide, this behavior was > a little unexpected, since the WAL segments are cluster wide. Are WAL > segments going to pile up whenever something drops a logical replication > connection? I’ve seen it, but it seems like this could be a bad thing. Since Logical Replication is piggybacked on Physical Replication, you cannot use the first without having the latter. And yes, what you experienced is one of the dangers of using replication slots when having a busy database (i.e. producing lots of WAL) and a filesystem with little excess space. Under these circumstances, it is imperative to monitor for (and alert on) anything going awry with your replication slot consumers, and/or the size of your wal/xlog directory. It's a feature of replication slots to work that way - but one that may end up biting you. -- with best regards: - Johannes Truschnigg ( johannes@xxxxxxxxxxxxxxx ) www: https://johannes.truschnigg.info/ phone: +43 650 2 133337 xmpp: johannes@xxxxxxxxxxxxxxx Please do not bother me with HTML-email or attachments. Thank you.
Attachment:
signature.asc
Description: PGP signature