Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hK5aW-0004RQ-Pi for pgsql-admin@arkaria.postgresql.org; Fri, 26 Apr 2019 18:28:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hK5aV-0004Zz-8s for pgsql-admin@arkaria.postgresql.org; Fri, 26 Apr 2019 18:28:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hK5aU-0004Vu-Uf for pgsql-admin@lists.postgresql.org; Fri, 26 Apr 2019 18:28:42 +0000 Received: from allegro-1.evaristesys.com ([209.51.167.66] helo=evaristesys.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hK5aS-0006s6-O1 for pgsql-admin@postgresql.org; Fri, 26 Apr 2019 18:28:42 +0000 Received: from [172.56.4.146] (helo=[IPv6:2607:fb90:1b64:9023:b870:76db:1a82:b676]) by evaristesys.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1hK5aQ-0002fr-1E for pgsql-admin@postgresql.org; Fri, 26 Apr 2019 14:28:38 -0400 From: Alex Balashov Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Fri, 26 Apr 2019 14:28:30 -0400 Subject: Physical replication slots and xlog space exhaust Message-Id: <5C492AE6-272A-451D-9563-59A93162F2E6@evaristesys.com> To: pgsql-admin@postgresql.org X-Mailer: iPhone Mail (16E227) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk We have a recurring human error problem where, upon doing a base copy to a n= ew slave, we accidentally leave the master=E2=80=99s physical replication sl= ots in place, forgetting to drop them from the slave config. After a while, transaction logs pile up on the slave =E2=80=94 since no slav= es are consuming them =E2=80=94 and blow it out. This then causes the slave t= o stop downloading transaction logs from the master, causing them to accumul= ate due to its own replication slots. I understand the ultimate solution to this is to mind one=E2=80=99s replicat= ion slots and monitor disk usage fastidiously, but is there a config paramet= er for the maximum overall amount of transaction logs that can be kept accum= ulated on the master, irrespectively of physical replication slots commitmen= ts? Thanks! =E2=80=94 Sent from mobile, with due apologies for brevity and errors.=