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.96) (envelope-from ) id 1w5H4f-0035Ep-0c for pgsql-admin@arkaria.postgresql.org; Wed, 25 Mar 2026 05:46:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5H4d-00C1Pn-22 for pgsql-admin@arkaria.postgresql.org; Wed, 25 Mar 2026 05:46:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w5H4d-00C1Pe-0q for pgsql-admin@lists.postgresql.org; Wed, 25 Mar 2026 05:46:35 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w5H4a-000000010kY-3oJr for pgsql-admin@lists.postgresql.org; Wed, 25 Mar 2026 05:46:35 +0000 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-43b88b7ca76so444279f8f.3 for ; Tue, 24 Mar 2026 22:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1774417592; x=1775022392; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=2Fu+MbhenA1gObuHGDJRqnD4TKzIIl9O3+43F44dBRk=; b=AN3S6n2lMM2Uv9H6QwmpnYr/UhVjfsTDdAt5f+FXWXasfQgwtP+nIs3pP38zODxHY/ i0rLEfdT7mFQ4/vD+hSDn33wZrZO/DPknJsj9W0y4DWnFttz/tRGuypIm5UP6NGbV1Mg zxBf/Q6DFmy0zEe3j5X5ddGNIfH+Va/wmDjjFT7EJ1SPcdsIhheYf64OHTA6EolKZlUK qSmnemnjP1/EfZj2kQ1CSP9lRtK9B1WZbYYbKv1zBf69TQJ+kUeAoSFWTs+dSIKnsJTd esGBQ5Fu0IzzGJ+a46/ygMeqqcwcvy+8GOgOUzMzh88YbFm5r+nM+ktJb7GEkuXLh2bn +MEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774417592; x=1775022392; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2Fu+MbhenA1gObuHGDJRqnD4TKzIIl9O3+43F44dBRk=; b=XB1RBSF1Nmcm5wIdjd7gq52uua1JbzfPuU1YrnqLulk3sBQF+nWmM5z/MzRZhZncr2 6M5lHonYFn1y9Vxjd7O0BKrRJmS+vhuSSGCyQVvvdWED/EdMAIqkVhnMZcwX7fwRnXmB v65tFktRB1WjTxddofIvGG6HyB7yVgTBTm4FA1cQWbgs81MYmVZDJ2YEhrrOJ63PU8j4 ODHgd8jn14q2Fyb43Q9esHopzFt6QrobvcHHOX8+PZQ/ha95wONjDa7v6BJ3gBYsDS/Z 1SSpF5/Wvs1qJIb2sqg+1VSUaNwpGuCaDfltAhKVpswfUDA6QwaUPW8d4dsKPH7fvzaa bxkQ== X-Forwarded-Encrypted: i=1; AJvYcCUci5rpZFmJ7VosyIM/WutExclIoA+0oVDxUxgpWSYuuX9wYhYGlWcamvrpR2woKzJSVpZ6S4q6dYpJog==@lists.postgresql.org X-Gm-Message-State: AOJu0YzgvPCWc5AzR1pOeYumv7nXR9SV8HC6Cp3TXivoMRx8Ww9WchKZ q0p9H45VDeQYoyQ3vge7/7Kma/G+uGhnX/jiBrkjJiHoEa1Ux1m1JT+zQDjUsCjYSZ6qwO/GrFF MOVOVsAyc2g== X-Gm-Gg: ATEYQzzm+RTeUO344Ij9FjRYShfBwTdCrY3GtbF2YZAHyJj2Ams+OlVeZj2QqTw/m38 DGiumMOqhnT+W6yVnE2WIzyuWX3ze9TZQjRJsCAEFekEFYjCmT9UvBnFKpp9LcyldIdfd3tw41b joBj59UDH8GKWl5k8oLucXa74/wpIOd8uCyHeqEwAL1i1ZBQzthGhWvj7G88LZq4KIRj28q8Tkm tbdHkVyBtFc8mad6247d63mekgi+JPqN/2MwdLPIxjRhQU8lh5fj+mXV6wfx303cGtjkruImLbV IS0csQagnDMuHNgw7IGXXL/r+8RxkQSAh6nT6luYAEIrfzpCw7rIv/q2VRxpjPRP3fIT6PSEFfB t9y9/fJCCfpCDf90Xo3Dn5rwewf7c4rx/BG/j8QxecCBtilrcA5F/jyZiveaKVfs6rSQebOyj1S VMXpV6AFLsBYU18CAFjVPXE4eR0msV8pvlFC39F3ycIlwVEgRl6fGsdBU= X-Received: by 2002:a05:6000:4310:b0:43b:436d:782c with SMTP id ffacd0b85a97d-43b8896cdb0mr2832634f8f.4.1774417591895; Tue, 24 Mar 2026 22:46:31 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:270:4fd5:603f:45c2:9807:c104]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43b646b0d3dsm42287152f8f.16.2026.03.24.22.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Mar 2026 22:46:31 -0700 (PDT) Message-ID: <369bd0be354c979bca79aeffb948ae81ee236dbd.camel@cybertec.at> Subject: Re: logical replication failing after a crash of the publisher From: Laurenz Albe To: Sbob , pgsql-admin@lists.postgresql.org Date: Wed, 25 Mar 2026 06:46:31 +0100 In-Reply-To: <348796e3-9777-4294-9b20-fec4e5a89135@quadratum-braccas.com> References: <348796e3-9777-4294-9b20-fec4e5a89135@quadratum-braccas.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2026-03-24 at 17:27 -0600, Sbob wrote: > we have logical replication setup for a set of tables that took 4 days to= finish > the initial sync, the publisher server crashed, after the cloud team reco= vered > the VM we were able to start the db and it came online after an online re= covery, > however we are now getting these entries (see below) in the log on the pu= blisher > and no row changes are showing up on the subscriber > > =C2=A0STATEMENT: =C2=A0START_REPLICATION SLOT "prod_sub" LOGICAL 9AE6/4E2= F5740 (proto_version '4', origin 'any', publication_names '"prod_pub"')=20 > =C2=A0LOG: =C2=A0could not send data to client: Connection reset by peer= =20 > =C2=A0CONTEXT: =C2=A0slot "prod_sub", output plugin "pgoutput", in the ch= ange callback, associated LSN 9AE6/4B83E5A8 >=20 > we tried disabling and then enabling the subscription followed by a REFRE= SH PUBLICATION > but the issue is un changed That seems to be the log from the publisher. It shows that the subscriber = closed the connection unexpectedly. You should examine the subscriber's log for the r= eason. Yours, Laurenz Albe