Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHCo1-00020q-0p for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Oct 2018 19:02:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHCnz-0006Mg-Bf for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Oct 2018 19:02:27 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHCny-0006MZ-Vi for pgsql-hackers@lists.postgresql.org; Mon, 29 Oct 2018 19:02:27 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gHCnv-0005zb-Ly for pgsql-hackers@postgresql.org; Mon, 29 Oct 2018 19:02:26 +0000 Received: by mail-qk1-x741.google.com with SMTP id d135so4606889qkc.12 for ; Mon, 29 Oct 2018 12:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=sNKvDFKn7j4Sfvneh6+/HZp5Y3uhhZcksOj91Ucj77k=; b=CdH768t+EQ5L9Ev3B+L438HvU6QUBxwisA0raRfa/1OOkOB3X4vYm3V2tW4V1wMLh5 pKUzG86jE915wHZVtG0ptst2Oi/DVHnB2/eX3iUBJznBQs6Vh3Vd6u+/uoyw4b9TlZMG SriNKt2g+eRS+BLddpMZ4ZFaijJyIcfI+/GH4d+wOwVB/trIIJ4Q36uCrQie5DIxVqvb rwSmzmDAst5cIgIiIYQwMT4hrX//KqZX33ksXuUMWGfUC79bCnDColgbc5FhVqdH+tGh /NiZnvhXfiyEKSFBnCC6CEaoLc3AitbWi5bj/9y3Il9HPLOddE37j1dDvFtycWEieXM1 FfGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=sNKvDFKn7j4Sfvneh6+/HZp5Y3uhhZcksOj91Ucj77k=; b=rNx5Ji9tqeMq+JwP6/uX1NsVX6xfY7jr+zK15OOs2u/QgBuSU0i2FTD0K7R4BGwLel CxmTFNcYXwOtrrFk+ubBCwxl+DOkf+asxGyrADvkLbYi2LZO4QHjhzibyXsPDczpnI2t WO2VL0KuyFz7q8atqTuhu7SX2oqp6m8NGlUDsnLR0D8j2fSbHqzgc6lODv8xANgq5bHX jNKI/Tk733BmscqB0R6xj6aGF5RNXpQ0kgskg2lwWNFwwsdVPmN7uUuxgt312LjqBSvn 25h633DuHCa9BH3Y6CEIdKOFrtlahuhpLIWvxP10qZw8f1NJLf8vR2yNkdn9+pX5gWIy rvGQ== X-Gm-Message-State: AGRZ1gKWldSAaYPJYlZsMmZuVPZtrqAFwMdeP+nzsNCIgkBLPUmtTC4B hZxMsIbxn4+NaNXAqUpuWspJKw== X-Google-Smtp-Source: AJdET5dTYQpszFQ2JmqzeU4chgAJoGghvp8zNeTsTn8QWQHy8+nYyn6MiLOOseh5lKWOJ60EUp8+ow== X-Received: by 2002:a37:ba42:: with SMTP id k63-v6mr13448249qkf.103.1540839741489; Mon, 29 Oct 2018 12:02:21 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id z20-v6sm3564172qti.75.2018.10.29.12.02.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Oct 2018 12:02:20 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id ED87D84A; Mon, 29 Oct 2018 16:02:18 -0300 (-03) Date: Mon, 29 Oct 2018 16:02:18 -0300 From: Alvaro Herrera To: "Joshua D. Drake" Cc: pgsql-hackers Subject: Re: replication_slots usability issue Message-ID: <20181029190218.uejy5cvgzygwrguy@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56672097-711c-126a-a63e-04e7940110ad@commandprompt.com> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Oct-29, Joshua D. Drake wrote: > -Hackers, > > > Working on 9.6 today (unsure if fixed in newer versions). Had an issue where > the wal was 280G despite max_wal_size being 8G. Found out there were stale > replication slots from a recent base backup. I went to drop the replication > slots and found that since the wal_level was set to minimal vs replica or > higher, I couldn't drop the replication slot. Clearly that makes sense for > creating a replication slot but it seems like an artificial limitation for > dropping them. This sounds closely related to https://www.postgresql.org/message-id/20180508143725.mn3ivlyvgpul6ovr%40alvherre.pgsql (commit a1f680d962ff) wherein we made it possible to drop a slot in single-user mode. Seems worth fixing. Send a patch? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services