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 1mSXt6-0000ZV-Aw for pgsql-bugs@arkaria.postgresql.org; Tue, 21 Sep 2021 05:00:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mSXt5-0006VC-3m for pgsql-bugs@arkaria.postgresql.org; Tue, 21 Sep 2021 05:00:11 +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 1mSXt4-0006Uy-Qn for pgsql-bugs@lists.postgresql.org; Tue, 21 Sep 2021 05:00:10 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mSXsy-0004Ca-Mw for pgsql-bugs@lists.postgresql.org; Tue, 21 Sep 2021 05:00:09 +0000 Received: by mail-lf1-x12f.google.com with SMTP id x27so76560322lfu.5 for ; Mon, 20 Sep 2021 22:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=03fq7EXP0QUQd1R5qF2m044Clph6Ch8gxHGGA9Msasw=; b=BXFtQ68zWaxWO5ZpjIE5v+d0aMsixRMTJ/KfAkN17XJlGeWfEG1mhsHo8FqvLhRDpZ NytMypK/P1d4eYq8/u1EAxPjSioXR294QeyyaQ7wnVsYVY98w6AWCCI0ZR6nAXvX2qAT Tbvxy1EfNOROFzd/yT4uRrpM9JMnP8wPmul9naJgKdTyuKyWTNLHbF8cMJXlmRekvtBt M5/wz9kiHT88xSgmNTbRYKtscLUKiLVDwPWx1ZWuAn7l91QNcuFh2eHWaAd7g1FocWzM zsF249b2Qj0f/bvn7oG6mseIcLyVMKIrniaR2fslyO3b62YG80M9NJEURiLt/yUCG68L rZIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=03fq7EXP0QUQd1R5qF2m044Clph6Ch8gxHGGA9Msasw=; b=LGWFcbp8aNm8saLSjHWf5+xKhEB4KBhYIxVXc6H4WeHKQYqxlRIsykFcQbY9w4gGDI 68BALcbphudb/UleFiypwi+LaGwiqhg0xAY6gL1Wd438lXaGUtO95vXVNZUbp2kj66tt CLycLuCvTnj2pYpPiMuio9F4uGztk2u+V5KvNTgyT+KmVsTl7obF1bS88S13Uck6JgLQ 0NGKmWFncfs/DrHYKuaHHanjvzPWLekSa7aHisVHWSGxsv9xPjkrY/6aomx+LQ0n2Gbp HCgmd/bELE7O6y9z898f9KBhH4gzcKG/UdshVCtNDEXLvYYBEPjk5OCxPFBriSUKhej/ wP0Q== X-Gm-Message-State: AOAM5337NPr4L4ApkgmYnr/eLT/a4pDBj0EvHa+IcQ0FT0Brn1u7vuPG CGc0sPmJwOJ5zzTxPeeOj2TMGKAxHCE= X-Google-Smtp-Source: ABdhPJywtbRJS0jJeGxX0Jotnpzeag7aNG0A3YLZlzaI12/T+SDwpaz6g8bkk6p9tfTn4DYcL4UC3w== X-Received: by 2002:a2e:a80d:: with SMTP id l13mr15725785ljq.213.1632200402967; Mon, 20 Sep 2021 22:00:02 -0700 (PDT) Received: from [1.0.0.7] ([178.155.6.195]) by smtp.gmail.com with ESMTPSA id s8sm1336603ljh.79.2021.09.20.22.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Sep 2021 22:00:02 -0700 (PDT) Subject: Re: BUG #17197: Assert failed on inserting index tuples after VACUUM To: Peter Geoghegan , PostgreSQL mailing lists References: <17197-9438f31f46705182@postgresql.org> From: Alexander Lakhin Message-ID: Date: Tue, 21 Sep 2021 08:00:01 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: ru-RU List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Peter, 21.09.2021 00:03, Peter Geoghegan wrote: > On Mon, Sep 20, 2021 at 1:35 PM Peter Geoghegan wrote: > Before commit 3c3b8a4b our failing offset number would have at least > found an LP_UNUSED item -- so no assertion failure. After that commit > the offset's line pointer might actually be positioned "past the end > of the line pointer array". But that is a valid state for a heap > page/HOT chain to have -- so the assertion has it wrong. > > I'll push a fix soon. Thanks for the report! Thanks for the fix! But if that is a valid (or sane) state, then shouldn't the comment "Some sanity checks" be removed (or updated) too? Best regards, Alexander