Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1meoIE-0002Jg-Aa for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Oct 2021 00:56:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1meoIB-0008K8-Fu for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Oct 2021 00:56:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1meoIB-0008Jz-8l for pgsql-bugs@lists.postgresql.org; Mon, 25 Oct 2021 00:56:47 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1meoI8-0002ho-Hp for pgsql-bugs@lists.postgresql.org; Mon, 25 Oct 2021 00:56:46 +0000 Received: from [192.168.127.1] (port=37153 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1meoI2-00049l-51; Mon, 25 Oct 2021 00:56:38 +0000 Received: from localhost ([127.0.0.1]:34083 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.93.0.4 (FreeBSD)) (envelope-from ) id 1meoI1-000NCm-0o; Mon, 25 Oct 2021 00:56:37 +0000 From: Andrew Gierth To: Peter Geoghegan Cc: PostgreSQL mailing lists , Thomas Munro , iijima.yun@koumakan.jp Subject: Re: BUG #17245: Index corruption involving deduplicated entries In-Reply-To: (Peter Geoghegan's message of "Sun, 24 Oct 2021 14:52:17 -0700") Message-ID: <87pmru6i9u.fsf@news-spur.riddles.org.uk> References: <17245-ddf06aaf85735f36@postgresql.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) Date: Mon, 25 Oct 2021 01:56:36 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk >>>>> "Peter" == Peter Geoghegan writes: Peter> PostgreSQL 14 is the first version where the default Peter> wal_sync_method is fdatasync() on FreeBSD -- though only with Peter> FreeBSD 13. See commit f900a79e. Perhaps that has something to Peter> do with the problem seen here. Nope. The database in question was restored from a pg_dumpall backup three weeks ago and I'm told there have been no crashes or even unclean restarts since then. Peter> I suspect that there was TID recycling by VACUUM involved here. That also doesn't seem likely from the heap page images I saw, which suggested a fairly low update rate, HOT updates, and page cleanup rather than much vacuum activity (in particular there were several LP_REDIRECT pointers and few free pointers). -- Andrew (irc:RhodiumToad)