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 1l2Lve-0002R3-4q for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Jan 2021 22:26:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l2Lvc-0005j5-Sv for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Jan 2021 22:26:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2Lvc-0005ix-MS for pgsql-bugs@lists.postgresql.org; Wed, 20 Jan 2021 22:26:16 +0000 Received: from lahtoruutu.iki.fi ([2a0b:5c81:1c1::37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2Lva-0005cu-41 for pgsql-bugs@lists.postgresql.org; Wed, 20 Jan 2021 22:26:15 +0000 Received: from [192.168.1.113] (dsl-hkibng22-54faa4-119.dhcp.inet.fi [84.250.164.119]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: hlinnaka) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 9FDA71B00162; Thu, 21 Jan 2021 00:26:12 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1611181572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=skB4M1xrMPLPvGiOVIPQQ42zEIVbmaZEo7L+X/2580A=; b=DCIYIXvd4v+aw1phDkqRXUYE4UzpvI/iUukLxVz4sYMjLZpXbJ7cyHtPNQdbvxVeHVnxyS +HR02wQ1F0As3T4e5l08wQHUjWUthCegkbwMllrnRlkDvHVIF/4U/owqIKHwmXT82YP6r3 BHBMh0mCG6E4bLIINs9aKM8o87G+DwKOWqJ27cvk2BuAV/ucQpoHgyojgyYF8AtZ8+6saz j7gXMmOu8JBxk6je2GXqZ5A2kxgwSGwzf0PVEE36faIuHT6LYVA6nw/XsTkl6ec2mbdqpP r9+3zlq5ipT1AH+s2im5G2ebu4SFcoT16V1ShcF9NRYjU93zsBHR7gLtDTKmLA== Subject: Re: Reproducible GIST index corruption under concurrent updates To: Tom Lane Cc: Duncan Sands , Andrey Borodin , pgsql-bugs@lists.postgresql.org References: <28663562-8489-4680-BC26-CAEADEB258D1@yandex-team.ru> <132baf64-3764-0351-750e-0443e74f1052@iki.fi> <907491b3-87c7-aadd-3fb1-be3c542b7fb7@iki.fi> <55ea6133-f2d1-0cc5-8ce5-333e373164ba@deepbluecap.com> <594958.1611156310@sss.pgh.pa.us> From: Heikki Linnakangas Message-ID: Date: Thu, 21 Jan 2021 00:26:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <594958.1611156310@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1611181572; a=rsa-sha256; cv=none; b=t2YQnGu9ojlsxZyeaLCGut8HQwuCKHa/yrfyZK2y0mbiwQdvUV5k11ojb/mXYx8FkJ1jkq poowKaSUrm0tbMh+fSlm2ogOM+ItW81qltOdeSzxyusIH9Sxi5K97JdyFdUb218p101UD9 PdYgknzwLeno7P4Q0PcsR7hO3BHBQoBTwu8bytSMYDpYor7Sn9PLMMIDwaYPc7S0SJNVIf LpYnU6YhommiREQtpeR1Iiy97CzWKgh69YXqeFkAIOILwgKuUiKefIxvEW2xns31zvXJuQ ImPzboItKIrIk8KAK1KJzB46Aynxc1OANcisyfeTwbCWoAyvV5dqyzrdMzdQ/A== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1611181572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=skB4M1xrMPLPvGiOVIPQQ42zEIVbmaZEo7L+X/2580A=; b=sRd0m+aNSX8e51VkQHZilaazLqMGM1fosNWqR7c8K7oSiPtE4u7BwsF3TEB8pqZEIFGtot Fopk45Fcu2/AXH9fbmlIBHc1noRCYFyda8tq/nvEifaT2iTyEuwzQqgt6NEJybByg9ZTnl zQNdYYomKgqgJ87t51e8yv052HMGYAlqoIk1uwV+Dh9bXgA+AXpDEGAvZDoVWbh+P8xOVt SkfDaFsety8vkk3bmVti/vsa2Cwx1e2zDr2PetGFcSqg18C6Gy8ljtFsNog2UKhKPgE5KD zR4n1TtHKHshrG+aJgzKYur/Kq+0C6/8xac6TGVLOrwM4OvqyrCyqeouBF6WvA== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 20/01/2021 17:25, Tom Lane wrote: > Heikki Linnakangas writes: >> Pushed as commit 6b4d3046f4, and backpatched down to version 12, where >> this bug was introduced. It will appear in the next minor release. > > I see you noted that REINDEX is required to repair any corrupted indexes. > For the purposes of the release notes, can we characterize which indexes > might be affected, or do we just have to say "better reindex all GIST > indexes"? Any GiST index that's been concurrently inserted might be corrupt. Better reindex all GiST indexes. - Heikki P.S. The GiST amcheck extension that's been discussed at [1] would catch this corruption, so if that was already committed, we could suggest using it. But that doesn't help us now. [1] https://www.postgresql.org/message-id/CAF3eApa07-BajjG8+RYx-Dr_cq28ZA0GsZmUQrGu5b2ayRhB5A@mail.gmail.com would catch this corruption