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 1rMYNZ-005Akm-6d for pgsql-bugs@arkaria.postgresql.org; Sun, 07 Jan 2024 19:00:13 +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 1rMYNY-00HLfi-6o for pgsql-bugs@arkaria.postgresql.org; Sun, 07 Jan 2024 19:00:12 +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 1rMYNX-00HLfa-Rs for pgsql-bugs@lists.postgresql.org; Sun, 07 Jan 2024 19:00:11 +0000 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rMYNQ-000Mhl-WE for pgsql-bugs@postgresql.org; Sun, 07 Jan 2024 19:00:10 +0000 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2ccbf8cbf3aso13352651fa.3 for ; Sun, 07 Jan 2024 11:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704654003; x=1705258803; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=FflfttIQDDmrLZS/eg06Z2b+0WfdoMKF90ahOXeRW4c=; b=J+zl4jhf5JjNKPscPDjIrSiUvzaKHtFR+CYiFe+RuXvBkza8rrHhK/TEulnxzXSe8v zD50eWHBqvBFBI3K7ZWi0NcL+USnO7XZuhXuXcDQUqSaQDsBkBcDvgLqZzerHA35P1N9 HMP8N4I0v8+n6Teib59RT76IFkGNOj2G2kjfVPrqIMPLf58gBSsQOGN5z26hEV8mD3eY /hRh4maLzJdrOlN1JYbU5gtW7qMAv9AIkAANwhA5FVbIwFvunWIphP9FavD/SBgX8oVJ M5cQAvQn6Zp/r2bj3MaPHPJ3J5UblYMHOSXp5x9sj2IoM1ngZhM1KOzIO8YhLqLnIsdZ xwjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704654003; x=1705258803; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FflfttIQDDmrLZS/eg06Z2b+0WfdoMKF90ahOXeRW4c=; b=vtKEZzqt2YgwOZieA0Yt4iNw6BC2CBclQF2GSpMytdivJtzf+u9vVkscgLeUpm/LoV mDVaD9FYs6b0A3XpO3U5VSq1BiRpmOvLExiTw0NI7ip6P/MczsfnbYMPo7io1MrQv59F be5E/rsYw1f1nIjx66bCl5SaP4PsSyG9+UIjl8nh1EohLrj8rN4ZBsB3uENeosquZUZw 1d9reaIZI0ndLdRFesw+RK3vCv46B6dM+2ZfPSqkwHtJQ530l05me3bBuANTMaNJ2sYB NczafHMxzifcXd+4oXAhdvfULQ8fk1Uek/Hq1LUN6ExN/eckgw918mAYYZngwqaIt6Iv I8zw== X-Gm-Message-State: AOJu0YzmQ5kVKaxw5LCjr70UN37thZv3ebU/fR7iwbc5SaLY4xpREuKc nSikiCJXWNiSXKeEFkzdb4A= X-Google-Smtp-Source: AGHT+IHRrsy3QC44gs5l9L9E68ui8PT/gK5fRDEoTwEQHw7q+z4FwgeC1uzTU8fZX3ISAm8ZsNOE7Q== X-Received: by 2002:a2e:a373:0:b0:2cc:7103:6b21 with SMTP id i19-20020a2ea373000000b002cc71036b21mr988956ljn.53.1704654002884; Sun, 07 Jan 2024 11:00:02 -0800 (PST) Received: from [1.0.0.7] ([91.185.77.50]) by smtp.gmail.com with ESMTPSA id f18-20020a05651c161200b002ccc7edc390sm1276944ljq.56.2024.01.07.11.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Jan 2024 11:00:02 -0800 (PST) Message-ID: Date: Sun, 7 Jan 2024 22: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: [BUG] false positive in bt_index_check in case of short 4B varlena datum Content-Language: en-US To: "Andrey M. Borodin" , Michael Zhilin Cc: pgsql-bugs@postgresql.org, y sokolov References: <7bdbe559-d61a-4ae4-a6e1-48abdf3024cc@postgrespro.ru> <0FDE2089-D306-4CBB-AD1F-EC4B419E3B33@yandex-team.ru> From: Alexander Lakhin In-Reply-To: <0FDE2089-D306-4CBB-AD1F-EC4B419E3B33@yandex-team.ru> 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 Hello Andrey, 07.01.2024 21:04, Andrey M. Borodin wrote: >> On 14 Dec 2023, at 21:18, Michael Zhilin wrote: > I've checked that: > * bug is reproduced by the test in the patch > * bug is fixed by the patch > * fix seems idiomatic, similar to nearby code > What is your opinion regarding similar failures, which are not addressed by the patch? Besides the case shown above, there is another one: CREATE TABLE tbl(i int4, t text); ALTER TABLE tbl ALTER COLUMN t SET STORAGE plain; CREATE INDEX tbl_idx ON tbl (t, i) WITH (fillfactor = 10); INSERT INTO tbl SELECT g, repeat('Test', 250) FROM generate_series(1, 130) g; ALTER TABLE tbl ALTER COLUMN t SET STORAGE extended; CREATE EXTENSION amcheck; SELECT bt_index_check('tbl_idx', true); ERROR:  heap tuple (0,1) from table "tbl" lacks matching index tuple within index "tbl_idx" HINT:  Retrying verification using the function bt_index_parent_check() might provide a more specific error. Best regards, Alexander