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 1sMBzH-0011jX-KX for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Jun 2024 19:37:55 +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 1sMBzE-000FQm-Rq for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Jun 2024 19:37:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sMBzE-000FQe-C8 for pgsql-bugs@lists.postgresql.org; Tue, 25 Jun 2024 19:37:52 +0000 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sMBz7-003X5G-KQ for pgsql-bugs@lists.postgresql.org; Tue, 25 Jun 2024 19:37:51 +0000 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-25957dfd971so3031549fac.0 for ; Tue, 25 Jun 2024 12:37:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1719344264; x=1719949064; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=O/1SaYfSIXJ59Sgq1ZCI0GHw6gRfBSgoaiTI0VbsO4M=; b=P4qQb9hGMXRxEYqIsmyFgp7N4juc7O6yi0A3bNwmbQb27mWXOj5cXOsuOCW94mesCl C56cMhGHBqMJlM9eYmvhMmHs6BtLusg2dB0ofYM5oRyUzwTXiAQN9JPP9BtYLvK5TblP EGiP2c6+hXOllWK8yphw1wUldROjIuhTh9G34= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719344264; x=1719949064; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O/1SaYfSIXJ59Sgq1ZCI0GHw6gRfBSgoaiTI0VbsO4M=; b=UVD29tgFtXLwgzP2whSZCQSpXDoa0fZVVTEXuKy5hP/Pi3s5SAUjsA2wsBGr7uOa0A A7ruMsZUqoHjHlRwE9vt6jAVvtDlln1K5mzQZg++jaZ/SNlLbcSxTszu7TM3L2OL71JL usHvYcJHuoB8hduEgesJFdwMAkb7Wzj5lJe0VFie00tnoqVaqB/QOaz42Re+w80ENR92 GyUGqOpw6ZU4KZC/j0sPtWhqmUPD6B/K/XUuJ6OxEPZH5zsXbV72nv26FOvDYUqhS/vG cfGLUz+/7JGnmm2VtEI8Am7aDHSiZFQy+h+D9XQ+XwWmsodN4+5XoFhNMj/X6K4kBIvz cM2Q== X-Forwarded-Encrypted: i=1; AJvYcCVAVPYA6GXxNK9+HmM4LA4BPY0qM9PBGtUKphuxIOOWZStpwohJxp1pGwcXjH5uvuPLbWgekekAyErOl+/feWCm27hloSCdo72pRDENQEnS X-Gm-Message-State: AOJu0YzgkwpPSUkZWKA+hURW9cxPp1jS2OOwtJosDxl339hBOV0NzWsi dMbpJn70Z+Q/kM67IzkfiHaNLUH+KBRfeiHW9DgCFPRzFUmiAHd6EZs9NbyROQ== X-Google-Smtp-Source: AGHT+IFqoZwsgsUnPHkKPWdSj90atTKr2Ip/XWkEwCCKspCMwMKWTeNSgWWuYaaUVS2A/lmDDb/A+g== X-Received: by 2002:a05:6870:1684:b0:250:7a43:af05 with SMTP id 586e51a60fabf-25d06bc8572mr9023260fac.12.1719344263769; Tue, 25 Jun 2024 12:37:43 -0700 (PDT) Received: from google.com ([2600:1702:a20:5750::48]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-25cd4987b4asm2591715fac.16.2024.06.25.12.37.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jun 2024 12:37:43 -0700 (PDT) Date: Tue, 25 Jun 2024 12:37:40 -0700 From: Noah Misch To: Melanie Plageman Cc: Bowen Shi , Andres Freund , Robert Haas , Matthias van de Meent , Peter Geoghegan , Alexander Lakhin , PostgreSQL mailing lists Subject: Re: relfrozenxid may disagree with row XIDs after 1ccc1e05ae Message-ID: <20240625193740.dc.nmisch@google.com> References: <20240415185233.65x57tbdybj4kqbg@awork3.anarazel.de> <20240518222311.6b@rfd.leadboat.com> <20240520204818.42.nmisch@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jun 20, 2024 at 11:49:50AM -0400, Melanie Plageman wrote: > On Tue, Jun 18, 2024 at 6:51 PM Melanie Plageman wrote: > > I ended up manually backporting the logic from 1ccc1e05ae as opposed > > to cherry-picking because it relied on a struct introduced in > > 4e9fc3a9762065. > Attached is the backport and repros for 15 and 16. > When this happends, a tuple with an xmax older than OldestXmin but newer s/happends/happens/ > @@ -700,7 +707,7 @@ heap_prune_chain(Buffer buffer, OffsetNumber rootoffnum, PruneState *prstate) > break; > > Assert(ItemIdIsNormal(lp)); > - Assert(prstate->htsv[offnum] != -1); > + Assert(htsv[offnum] != -1); The master patch removed this assert instead. Is the back branch non-removal deliberate? If so, the patch is ready. I also confirm your results from your repro recipe; thanks for including that.