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 1rAahv-007IhX-Bc for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Dec 2023 19:03:47 +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 1rAaht-005RZk-3E for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Dec 2023 19:03:45 +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 1rAahs-005RZc-Kz for pgsql-hackers@lists.postgresql.org; Tue, 05 Dec 2023 19:03:44 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAahp-008xdW-3P for pgsql-hackers@lists.postgresql.org; Tue, 05 Dec 2023 19:03:43 +0000 Received: from [192.168.1.120] (unknown [83.139.171.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: d.koval@postgrespro.ru) by mail.postgrespro.ru (Postfix/587) with ESMTPSA id 523B8E20C39 for ; Tue, 5 Dec 2023 22:03:37 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1701803017; bh=ZdQRh1d3xJhSOZVe6XpqcBpOzvswToyotgHnfmvzv7w=; h=Message-ID:Date:User-Agent:Subject:To:References:From:In-Reply-To: From; b=m9vrRFhM1FY/pkdTHoDUPNWSnO53RYNLSFCpEcLhjTRT2Mw/V/N5zodE/IDktyluZ kgz70gYsdG85DUE24Y9Z0pJMMJw8PrvMu4daUZQrJ4OVPOq9uBAGwg+uDBtwn8AAcQ eHVT6Y5oq/oQOAXBlNO1UDpvdJ0rn3GB2BirM7wzY/iATOtuDsL2ovjjGj3dCZWtLM ZEJce41Eas/tYOHH+faYfcC6QlxfzZpCl716UWEwSA3I0nkfQL/nSZgFeSIm3zZ0Tg mkqGyGC4gv3CQz0tqT2vRbCHN6jgcOmO1JVJc/gwjcRfmhq84CHpn5s268PUaK5Lwq Au0U2dpXO/LTw== Message-ID: Date: Tue, 5 Dec 2023 22:03:37 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: collect_corrupt_items_vacuum.patch Content-Language: en-US To: pgsql-hackers@lists.postgresql.org References: <1649062270.289865713@f403.i.mail.ru> <3107109.1658958956@sss.pgh.pa.us> <8e6bd629-fa69-371c-966d-aaf071aafeb8@gmail.com> <918b9dc0-9af0-a62a-19cc-cb858b163299@gmail.com> From: Dmitry Koval In-Reply-To: <918b9dc0-9af0-a62a-19cc-cb858b163299@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi! I agree with Alexander Lakhin about PROC_IN_VACUUM and VISHORIZON_DATA_STRICT: 1) probably manipulations with the PROC_IN_VACUUM flag in pg_visibility.c were needed for condition [1] and can be removed now; 2) the VISHORIZON_DATA_STRICT macro is probably unnecessary too (since we are not going to use it in the GlobalVisHorizonKindForRel() function). Also It would be nice to remove the get_strict_xid_horizon() function from the comment (replace to GetStrictOldestNonRemovableTransactionId()?). [1] https://github.com/postgres/postgres/blob/4d0cf0b05defcee985d5af38cb0db2b9c2f8dbae/src/backend/storage/ipc/procarray.c#L1812 -- With best regards, Dmitry Koval Postgres Professional: http://postgrespro.com