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 1vhsA1-008NMV-2u for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Jan 2026 16:31:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vhsA1-00DsEk-0B for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Jan 2026 16:31:25 +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 1vhsA0-00DsEc-2R for pgsql-hackers@lists.postgresql.org; Mon, 19 Jan 2026 16:31:25 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vhs9y-001Mgd-2j for pgsql-hackers@lists.postgresql.org; Mon, 19 Jan 2026 16:31:24 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4801c314c84so26661795e9.0 for ; Mon, 19 Jan 2026 08:31:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1768840281; x=1769445081; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:content-id:mime-version :comments:references:in-reply-to:subject:cc:to:from:from:to:cc :subject:date:message-id:reply-to; bh=jGk/D+4a0OaQBexzDRGXRNQu1iygq43QIQGrQBbrk8c=; b=slNbw++FpI2CdX1l0JTQ2ADUXQRUNaGlLvxrTjJ6yMTiMOnD/HyUD/lUSlEukTQByU PlsHVEgM+BTgjoGXNnTZhGyDqSasiFX0+OK3OZ5aXPwOZhbQHlJOF116VJCcx6mJ34V+ mLnzL8/lX3+/uKEOQa03SZRYGx9tIjTop0vl6t/N8Ssnzf4UUNmFV3YJQB6ce8KHrCZ/ gEXyV6k5oGixZ1lV4/HbnuzDJIRQpmHe8wsPasM0v2WNKKJos43Ef39oiQ+N5ksRqobl e6oUMs5r8FI+07lVwGeNIuCCnZLSX0zeT3H2veDXHN6D1jejiOktOC6Xf+KBLyx3Pw30 LX4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768840281; x=1769445081; h=message-id:date:content-transfer-encoding:content-id:mime-version :comments:references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jGk/D+4a0OaQBexzDRGXRNQu1iygq43QIQGrQBbrk8c=; b=GCFfWDQ6mrDt47cagIWrzMBenwr+uj7uandtych1BmaCq+g+ui2DEn1qIBoLwXQUYu DC8MWhGafJN0P6i4nM96oyxo3BYYml2Lps5ba/tZJXFwtQQqnPmQnT7oaHhka7Pip5C8 Urs4rJuoSA4sG+dIaCSknMnYvwvm1TOXO9LHIsSv5boSJMtGbLHzUvEeccyU2X96s2Xc 878+4to2p2Yrrrg7rzc8yt9lBKMiZQjka/MDO5ypaNJWFBhaU5n7XTiiY4lAQGvI/zS5 VmyTYiXnOJqoZvUSRX22WxJM495ZIhkKl58recaFh6eC4jo+K/cohGyaPJX6CJO58qYq XIDQ== X-Forwarded-Encrypted: i=1; AJvYcCURHqZ+Cv7aNGnfKJXrf1ZwrnoDUX9l5VfpkR2TxUzwG2ILi59wR7rxu1Rbn/t4KDM+RKOHDOdQfSvHNzhn@lists.postgresql.org X-Gm-Message-State: AOJu0YznPJueP4+JHmZg5S4eQKTCsO9raBwTigaL6mLHi59X0EzeZXNL 9oynbm5rQKf7Kg2qYUHJPc2dPPigrwdDlUWigdkR3F+ED9diFQYZrmnyNWHOW1rE0CU= X-Gm-Gg: AY/fxX6rIVClIdS2+Jz7HPJh/IuIHpVbta+0r5owsCPK5kQ8NRALz1N5lB4TDUmHI23 sNVnh4Lj6xQk0EwfSTaKS9olIsxKv9bIC7UDqkU1BPAvxAcHkC4cbpElFAfkHtZuxVxqYvof0ys KPljmLlYJ2gbojY5DVUcMPnDWsFOeNUvl/+Iw/jjMjjEq40YSBJTfEgVd1ASTfngUwY1UtBaVaa 6sFioq3wjhj7iU/YGZKuSD/VA5n0GdoVCRSZRhztcYsdXDxZyNSxAhgtDjZLKDxs5owr0Mr7OtO Pl58lY/8uI4HAuL1BwkW5brkSFRxXmrUW4LxTV36Q740AcXjZzl9Yp+dDR1vUOZnvJ+ZATJERM8 10NkVRT6OTBLlXytQxVVTP59bZ4J79xJL1+hyUvMDAIwhZ5Ufg9SCHLe2bkb8qUjMnSkkUaSFHM wPUU7ZSTzB8wovJNCaDhd7ii/H X-Received: by 2002:a05:600c:1914:b0:47e:e72b:1fce with SMTP id 5b1f17b1804b1-4801e35868emr137428785e9.37.1768840281089; Mon, 19 Jan 2026 08:31:21 -0800 (PST) Received: from localhost (109-81-168-246.rct.o2.cz. [109.81.168.246]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4801e80c477sm234535925e9.0.2026.01.19.08.31.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jan 2026 08:31:20 -0800 (PST) From: Antonin Houska To: Mihail Nikalayeu Cc: Alvaro Herrera , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: <23347.1768587496@localhost> References: <202512151349.vlq3mpfniyk3@alvherre.pgsql> <11247.1767609087@localhost> <11558.1767609632@localhost> <141054.1767891540@localhost> <137668.1768235610@localhost> <35686.1768495019@localhost> <23347.1768587496@localhost> Comments: In-reply-to Antonin Houska message dated "Fri, 16 Jan 2026 19:18:16 +0100." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <85929.1768840279.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Mon, 19 Jan 2026 17:31:19 +0100 Message-ID: <85930.1768840279@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Antonin Houska wrote: > Mihail Nikalayeu wrote: > = > >Antonin Houska : > >> = > >> As the test runs pgbench with --client=3D30 and the default value of > >> max_worker_processes is 8, I'm not sure this is a leak. I've increase= d this > >> parameter I couldn't see the error anymore. > > = > > Hm, as far as I remember only single repack may be executed in test (b= ecause > > of locking on test itself and also REPACK). > = > The only problem is that the logical decoding system needs to wait durin= g the > setup for all the running transactions to finish. So if REPACK (CONCURRE= NTLY) > is already running, the next execution will not start until the first is= done. > = > However, that does not restrict the REPACK decoding workers from startin= g. > = > >> I agree that this is due to the missing MVCC safety feature. I comme= nted that > >> check in the script for now. > > = > > I don't think so. In case of non-MVCC safety we should see 0 or correc= t sum. But script failed with 490588... > > But should see 500500 (if I correctly calculated sum of numbers from 1= to 1000)... > = > I was referring to your statement "It may be 0 because non-MVCC > safe". Regarding the non-zero values, I think I finally understand the i= ssue > and even could reproduce some weird behavior using debugger. Since it al= so > affects logical replication, I'll provide more details (and hopefully pr= opose > a patch) in a separate thread early next week. This is the report: https://www.postgresql.org/message-id/85833.1768840165%40localhost -- = Antonin Houska Web: https://www.cybertec-postgresql.com