Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFJiV-00CQuU-09 for pgsql-general@arkaria.postgresql.org; Sun, 24 Nov 2024 21:00:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tFJiT-009aFz-LC for pgsql-general@arkaria.postgresql.org; Sun, 24 Nov 2024 21:00:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFJiS-009aFq-TM for pgsql-general@lists.postgresql.org; Sun, 24 Nov 2024 21:00:25 +0000 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tFJiQ-003aUZ-4y for pgsql-general@postgresql.org; Sun, 24 Nov 2024 21:00:23 +0000 Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-3e606cba08eso1797925b6e.0 for ; Sun, 24 Nov 2024 13:00:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732482021; x=1733086821; darn=postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=l6V8naxJC8LHK2UDxQyLby0h84gbfSpVg1pHMKuKotI=; b=gkDZga0r4Fv88+R9VGcixpg9KLFGVg9niUJcyAy+TeBVeMLkqUwOFoV01qtvzNc46T 1vRXbH38KLmbRvPBDD1ozCCWS4bakr52zTWHtJnjxdnafnqn3wRLKhz1Xn0cDhNnHps0 S1DI1ZNShIl9L8fuaeHP4wMgaOpjwGOXGtkcGzXUPWaGjaKRf9xk2dxelHWWP4To6Ke5 eQrYEIprdqfwn/XQHsPR0+6XhNSD8Pt49Ri2Zzbprjr4JQ2KvP4EUUHoAuCIDnRgCVKN tqmpkfbp7BVHlitWJO4b67BK80mCNKvkaUUUcKeg9+F3RKFJGZMYmIG6Ej9WOTp5s1h7 Co3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732482021; x=1733086821; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=l6V8naxJC8LHK2UDxQyLby0h84gbfSpVg1pHMKuKotI=; b=KsoGZkBGePOgvlj2htlnNhh99tTIUG6vOjEjx8fZ1a7MJAWtEzVkTbN7JnQKn66kps M7M1b94sHMBsWvMyU9Zv4t3e2WWUE65pFfsJIWqllsShtSq9KsL2pM657RthZCSvb6RC x4sdwuRiXUANySODldrQ4fZNRZUJvXqOPPsFeCut2FdBq/OzYz2VgSeRNwH8g+wwfANi q9c9lkL8Xl/OOzg7GjfENIQzPK7o0iRluBHa1X2zTJXKP45G6gJbrvFxseSOBDVaPxqa EmiTt4j/sLbKSvb4JVlSfOkMb+FFe8ItT1EwUuy1f3PipbfTXy97PI5F301oD1sWJUii IDNQ== X-Gm-Message-State: AOJu0Yx+Xyfcg9T5exaHMSNiaBx2D6AFoSFEIQoxEjiEUm49YQyebGWL iSKmFmotqN8jAMt2k+LCDDEJvA7S3QWfUKvkj+SJUJIdXpAgtwMKcbZpJScclLUKYsGDEvuWP69 tor1ZJqwgLD5HZSIxNw4wlCSWUrw4voax X-Gm-Gg: ASbGncumQ3S0jryeJdCh3GF15j8peNDMehn4J/VCmjIeSiHIN4rYEBliTmGCLzsZYrb 842YlU15UmTnl22WFFn5A/WBExYD9eStDavFUa424rYiJVoNyPsFuYkYH+254UxI2TA== X-Google-Smtp-Source: AGHT+IF/j6h4iHF5Mo3AMYXWtVl/7XDKetfBKkwZWUaVCkOtsvYre+v//Lr/4ceyxIaiY22Kyp8kL4Mgd0Li3GVWvLs= X-Received: by 2002:a05:6808:1595:b0:3d6:3000:9ab3 with SMTP id 5614622812f47-3e915ae972cmr7332549b6e.40.1732482019256; Sun, 24 Nov 2024 13:00:19 -0800 (PST) MIME-Version: 1.0 References: <6c498f0e-64f9-449a-9b90-5cd72d00e2ef@aklaver.com> <2a7d96ac-83a7-4ddc-a3ce-9c637f2c1c76@aklaver.com> <1FBD217B-06FE-48CF-AA58-F7ADEDA5ADD2@thebuild.com> <60D0A828-451D-48B1-8A47-B246806A03E5@thebuild.com> In-Reply-To: <60D0A828-451D-48B1-8A47-B246806A03E5@thebuild.com> From: Ron Johnson Date: Sun, 24 Nov 2024 16:00:08 -0500 Message-ID: Subject: Re: Questions on Upgrading PostgreSQL from 15.0 to 15.9 and Setting Up Streaming Replication To: pgsql-general Content-Type: multipart/alternative; boundary="0000000000005671420627aee71c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000005671420627aee71c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Nov 24, 2024 at 2:55=E2=80=AFPM Christophe Pettus wrote: > > On Nov 24, 2024, at 09:15, Ron Johnson wrote: > > > > Doesn't the existence of a replication slot force PG to retain WAL file= s > when replication is broken? > > It does. I don't recall if the OP said that they were using a persistent > replication slot or not; it's not as common with binary replication as wi= th > logical replication. > Really? I wonder why people fight with configuring max_wal_size and wal_keep_size, when replication slots do all the work for you. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --0000000000005671420627aee71c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Nov 24, 2024 at 2:55=E2=80=AFPM C= hristophe Pettus <xof@thebuild.com> wrote:
> On Nov 24, 2024, at 09:15, Ron Johnson <ronljohnsonjr@gmail.= com> wrote:
>
> Doesn't the existence of a replication slot force PG to retain WAL= files when replication is broken?

It does.=C2=A0 I don't recall if the OP said that they were using a per= sistent replication slot or not; it's not as common with binary replica= tion as with logical replication.

Really? I wonder why p= eople fight with configuring max_wal_size and wal_keep_size, when replicati= on slots do all the work for you.

--
=
Death to <Redacted>, and butter sauce.
Don't= boil me, I'm still alive.
<Redacted> lobster!
=
--0000000000005671420627aee71c--