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 1nLckV-0003rA-MD for pgsql-hackers@arkaria.postgresql.org; Sun, 20 Feb 2022 03:18:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nLckU-0000Rt-7D for pgsql-hackers@arkaria.postgresql.org; Sun, 20 Feb 2022 03:18:58 +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 1nLckT-0000RY-Tt for pgsql-hackers@lists.postgresql.org; Sun, 20 Feb 2022 03:18:57 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nLckP-000521-Mc for pgsql-hackers@lists.postgresql.org; Sun, 20 Feb 2022 03:18:56 +0000 Received: by mail-ej1-x634.google.com with SMTP id a23so24349873eju.3 for ; Sat, 19 Feb 2022 19:18:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bowt-ie.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kN5v9zP442m4+DM19+hYszKJ99tlox2a/43ZxGfCgys=; b=hhQNj2/IuEYX1GmDMrzRP9v5+o6n/rbc25LZcP6WDmWssVgxGX7zRT7xuDwKY0H8Oz b8VW1SIiQpbkn/JH+4JdG6ouiNJf0AzZrul7mJLUsfbXrIzAgL2YLTgeZdDxzr+UlYYi EpWHJO4OINH/dBZv3AAsdWgXCQ9iT74hMN+Wn3G1VH5D1nlMO5uD7IEjzNpzp3wiLOtk y09l6bwhnU5+VZnAp9FQkOUMXcCafrDziDA5RXmr0sPwRCJvFKCRfRgv1Q2HiJxwyaBw LOHdtm1p5thuaCFPsna9i/r35JWRjVDEFRqEocITe4nWsbRe7uGZ9RASErghAJeUYOdU 3d8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kN5v9zP442m4+DM19+hYszKJ99tlox2a/43ZxGfCgys=; b=1F2jH59lFHxl/PXfZzBl+nY+2nJ0dAttc0nwK5tRGGfPvqd7VvLfZWQmurwnkM++Or UW8BJoiHlnR/H2e2daBEvhWRdrpG2wqMK38IsopES7qteUXBilYiCvsM+Jk/qtD0VCMC aIL5Ne79ViuRJKTgtk7j6L79AwD3Lbv4L4uiJ6TkfQVU7iIjJwWSrDsSDfM1XAvZqY0c xW6ONK8wN8fxOiFvdKHmE0pw8CmUbkpTHfTn9l/u/jttSak/lf7nqvjBTyf3V8ZVF01S QJeJWBqalHutavlrXjYfxSfwrYXG6KUiL48awkj3otuZeIl+y87r64x+Sa4vUO9AGKo4 TAzQ== X-Gm-Message-State: AOAM533quos7C7STJe3GVNWZAsDYWw0TpIjn6B4hkypi3UylQGtRadeF pWomoaTgb+7TaifZyH+KIALVfw9eLAzRErQuFv8mLu20M5wmDQ== X-Google-Smtp-Source: ABdhPJwG9rYRH+t5vl5erO5SqcTrxHTlf7NnNIlKhTmbxrJWLL70nqOOPSK1UaPjOttI7gHtPM0mh/qMmV1uJwliat8= X-Received: by 2002:a17:906:6b8f:b0:6cd:7984:26fc with SMTP id l15-20020a1709066b8f00b006cd798426fcmr11488740ejr.701.1645327132043; Sat, 19 Feb 2022 19:18:52 -0800 (PST) MIME-Version: 1.0 References: <20220218221117.ijozsjwaxa6fy5u6@alap3.anarazel.de> <20220220015416.gxnocs4we56ghmj3@alap3.anarazel.de> <20220220030128.sgytb3wccteb3opj@alap3.anarazel.de> In-Reply-To: <20220220030128.sgytb3wccteb3opj@alap3.anarazel.de> From: Peter Geoghegan Date: Sat, 19 Feb 2022 19:18:25 -0800 Message-ID: Subject: Re: Removing more vacuumlazy.c special cases, relfrozenxid optimizations To: Andres Freund Cc: Robert Haas , Masahiko Sawada , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Feb 19, 2022 at 7:01 PM Andres Freund wrote: > It's kind of surprising that this needs this > 0001-Add-adversarial-ConditionalLockBuff to break. I suspect it's a question > of hint bits changing due to lazy_scan_noprune(), which then makes > HeapTupleHeaderIsHotUpdated() have a different return value, preventing the > "If the tuple is DEAD and doesn't chain to anything else" > path from being taken. That makes sense as an explanation. Goes to show just how fragile the "DEAD and doesn't chain to anything else" logic at the top of heap_prune_chain really is. -- Peter Geoghegan