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 1r0Lgg-00598D-Vd for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Nov 2023 13:00:10 +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 1r0Lgd-008HJw-Te for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Nov 2023 13:00:07 +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.94.2) (envelope-from ) id 1r0Lgd-008HJl-JY for pgsql-hackers@lists.postgresql.org; Tue, 07 Nov 2023 13:00:07 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r0Lgb-005B7d-7f for pgsql-hackers@lists.postgresql.org; Tue, 07 Nov 2023 13:00:07 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c503da4fd6so75044381fa.1 for ; Tue, 07 Nov 2023 05:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699362003; x=1699966803; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TKCmUlgNoaIOKBgenGA4GDpBHxsn5IYTS3HGAGkm/8o=; b=NuNVAM/yT0Ts5hv7X8QhqkOo4Uu3f2lwtVJnYGb+51UNA6p7bbz8U0FR5cROFxQGc3 PsioIM5d3A9doMkyQg7qhb9Euf/5zlDzYcp0/iyOrYx3+ujTyEdPL2ER4ZnGFr29FURe eMrHtB/1+JVG8jx+/GlEShSTkoCUiRb7UOZ1nhoJI4Zus1R5ne5iATC8aV3gwt9U9Tb5 tuwfiIUdGnhqSEBGtV8RveGiBauC2qPCYPaNx/wqxRW/hj/LWeQuKkKweR86FiPFoC0k L+2kXdoIt9ietCZO2otAmItNEeu2NQWWQ97VpZR2RkTQvAGt21tZkJwxC9ymVseX7x41 RCnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699362003; x=1699966803; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TKCmUlgNoaIOKBgenGA4GDpBHxsn5IYTS3HGAGkm/8o=; b=fhyxZW5B9FZVAoKS+LeyYLkBWD7t52ViDBahZzmeKjcnq+Oc7prgTvRGUc5i3asK9g U3otvsbZDUpsELB9PB//sGqfpRiG8LI3JQ0ggtA0PicwoGx27XuLfCjDr5UkYNIlheeN nA0TktDj+E0wyjeGbvSlVdVKvGGIfumiSIRltnrwkVewvWLwsTPwZ78kBRaqQ+Lq2Xx2 aBsFGbtvRifn+GALiGofqVJsbHtccRf6IhzXsctNUERIUtLdubYhHTi2RqBiN5dGvXPQ ml7pVcQfRsZQLUz7eue3BfWv9cCEhr/vt7yhdRLo9dmMzywCAi2cP1IB5ed6vLRFqZFg 19+w== X-Gm-Message-State: AOJu0YzMjpFyd8gvdZnbdzCiK56fkaY7V06eJvtTQ0//KrezpxuMNY0G XMwp/xAXdndiSPF3u3Ljjg0= X-Google-Smtp-Source: AGHT+IECywoKtZooL/JS/sdBxXwig93oS4enL4x3njz0by5zcJfyFVV7zYmUakaxUkvQr9V/OJpsvQ== X-Received: by 2002:a05:651c:10b:b0:2c5:24a8:c22d with SMTP id a11-20020a05651c010b00b002c524a8c22dmr25056827ljb.3.1699362002373; Tue, 07 Nov 2023 05:00:02 -0800 (PST) Received: from [1.0.0.7] ([178.155.28.40]) by smtp.gmail.com with ESMTPSA id e6-20020a05651c038600b002c54ee0cb77sm1497700ljp.127.2023.11.07.05.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Nov 2023 05:00:01 -0800 (PST) Message-ID: <8e6bd629-fa69-371c-966d-aaf071aafeb8@gmail.com> Date: Tue, 7 Nov 2023 16:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: collect_corrupt_items_vacuum.patch To: Alexander Korotkov Cc: Daniel Gustafsson , Daniel Shelepanov , Nikita Malakhov , Michael Paquier , Robert Haas , Tom Lane , PostgreSQL Hackers , Andres Freund References: <1649062270.289865713@f403.i.mail.ru> <3107109.1658958956@sss.pgh.pa.us> From: Alexander Lakhin Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 07.11.2023 14:38, Alexander Korotkov wrote: > Hi, Alexander. > > On Tue, Nov 7, 2023 at 1:00 PM Alexander Lakhin wrote: >> It looks like the v2 patch doesn't fix the original issue. Maybe I miss >> something, but with the patch applied, I see the failure immediately, >> though without the patch several iterations are needed to get it. > > That's a bug in the patch. Thank you for cathing it. It should start > calculation from latestCompletedXid + 1, not InvalidTransactionId. > Please, check the revised patch. Thanks for looking at this! Unfortunately, I still see the failure with the v3, but not on a first iteration: ... iteration 316 Error condition in psql-8.log: create table vacuum_test as select 42 i; vacuum (disable_page_skipping) vacuum_test; select * from pg_check_visible('vacuum_test');  t_ctid --------  (0,1) (1 row) (I've double-checked that the patch is applied and get_strict_xid_horizon() is called.) Best regards, Alexander