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 1vcQyo-006QSU-2T for pgsql-admin@arkaria.postgresql.org; Sun, 04 Jan 2026 16:29:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vcQyl-00FVs8-37 for pgsql-admin@arkaria.postgresql.org; Sun, 04 Jan 2026 16:29:20 +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.96) (envelope-from ) id 1vcQyl-00FVrz-1q for pgsql-admin@lists.postgresql.org; Sun, 04 Jan 2026 16:29:20 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vcQyk-0049iK-27 for pgsql-admin@lists.postgresql.org; Sun, 04 Jan 2026 16:29:19 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-47a8195e515so80299495e9.0 for ; Sun, 04 Jan 2026 08:29:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1767544155; x=1768148955; 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=SNbc5PchFpGXc9cXQFXxD1H50x+gFACD21EAVYdkT3Y=; b=Y4vJ5TKUrpZkHeu59wt2PxQXhDBxYhuTDLuFMttmG7baIpIvoNZ2iFQDPFb2ume1h+ NfpC8x0d/QhFjTucdhOtXteR+4LsB5YyvfUaOy8jicSJh7fpF5YahX8bPkfZr9ltlpUl 55oKS67inL+Ov9Lx3aFC0hh8/hFIGQgxIAwpNMK9ZqS4mlKO5SqD+9jvSeoOnoONe7LY 9vyACdcFQ0m57yPeBiaRagP9CbXA4VW4jyT+pQbEiRLdEbPPp1VKiPQMvXZtXnkJjczp LqRheviQuXuUhgeghZPQJi2nafuafpMvM9wNLIrxXiopzewuiGxCF3qeTNj+NiC3Frvd oUgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767544155; x=1768148955; 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=SNbc5PchFpGXc9cXQFXxD1H50x+gFACD21EAVYdkT3Y=; b=rHF+tYzo1BQJd7J/SWbZD9x0cPZTBlSozws64oqQGcjZg/Mk5hbWeZhfJGkAKkBcXM BHC0oKmXjauZpSq2ykCKgDBAszQjPu13zeBtpb5c4SwpJtzyfw/4uGdlzIvfMpqK5SSt jEbZg2/jq/knwlPI8wOgfmb/IJbBNMrvNJFETmHFCZEKjHGcWkU43uF8g6nD37mBRcc0 UMC1JG5wYgnVkjieqWKZln9p/jw+fdNPEQ7UJyBoO9aT9+DNE2WwvVdcR7KVCjB6DvyM P6hEVaZUimF4jJPBn1IudB0NsZRADOc1FdShJlZF69F33Gf4Bi2tnzvDjFcz/vvIGAn1 U6hA== X-Forwarded-Encrypted: i=1; AJvYcCU28PLl9/YMRz6EwVjEsQknq08FI9PxJ/VoZHp8FQJ3vCWFOwjtL95rEnyBeR+ZddSvafg9zjQY2iXX/A==@lists.postgresql.org X-Gm-Message-State: AOJu0Yx8AIj2mqiSTcwa2iNzOFtKvyEiz4hi3mJY+jYrN8WKkQtwC3Dq eT4V8REbaHgF51HrNP+ALKSvH1nW9lgQaNjCluYmMBajIz4ysZVSpdRGxJFyzhwiPmD6H3lGeG4 yVIMDMxxUsQ== X-Gm-Gg: AY/fxX7I70O6p38DnwfSrPoqmXQMc/x1INhAgbkbKZFPhbFtM/nQmKmb41KwJpA+TqP TPJYBo5FcJi5g5oi48OXNZw11wFpVfVqJR4BhAsUUoYGn8Y9+3InAf1JxtVDoW1C08OCcQpusNP 8yOsDIfGa7dCzmDXS7RZW1HoO8XASiTGlNWFUCy5l/7h1lX9me+BB39P3M0J7b8aBgD7Y1G0eQ3 k6EQxqG9Jbb6I3xVeecHBRu4NuOkPt3YpiAULzNO62xtSUVHcBmDZIk82ggui7Yl6YBuicthdOT lYaEIHYQftbeWZLeoZm7B8wNhSJRhGbp/bsnYHnrnw+cF3gAXQ4TVjxs7E2UbVtPaXjr2rDZlUu u7BK27c8egYD5WLVbntGlgFzDwZGR0QankDSzAWm/mkIqF78ft3+exxt6/mXQcXqZ+twJ5/UTaU uOhYho/fAF7U9zWsEyhIifrsEekUmGwwvSh7yJ6t4++Rclsv4YL6Q9AQ== X-Google-Smtp-Source: AGHT+IFeJoHKCLoQ0fkI0+u+nZD1OJFkNBGGFrAVmmZNNntgLiS6YkFES2rZXJMqefzdFdQSqArplQ== X-Received: by 2002:a05:600c:470e:b0:477:429b:3b93 with SMTP id 5b1f17b1804b1-47d1958a640mr597510435e9.18.1767544154978; Sun, 04 Jan 2026 08:29:14 -0800 (PST) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:270:4cd4:ad4e:e4e4:66cb:81ac]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47d7399c689sm34261875e9.9.2026.01.04.08.29.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jan 2026 08:29:14 -0800 (PST) Message-ID: <82666d95c1c837ce600bc2a3f212f8ebbc1f5b22.camel@cybertec.at> Subject: Re: struggling with logical replication and WAL segments removed even with max_slot_wal_keep_size = -1 From: Laurenz Albe To: Sbob , pgsql-admin@lists.postgresql.org Date: Sun, 04 Jan 2026 17:29:14 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.2 (3.58.2-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 2026-01-03 at 11:28 -0700, Sbob wrote: > we have been fighting logical replication for some timetgres v14,=C2=A0= =20 > max_slot_wal_keep_size =3D -1 but I still get this kind of error on the= =20 > publisher every few days: >=20 > ERROR:=C2=A0 requested WAL segment 00000002000009D6000000AB has already b= een removed What is the "wal_status" of the replication slot in "pg_replication_slots"? Unless you are hitting a bug (what is you minor version?), I'd say that som= e rogue software is removing files from "pg_wal". Compare the "restart_lsn" from "pg_replication_slots" with the available WAL segments on the primary. Yours, Laurenz Albe