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.96) (envelope-from ) id 1w3ciX-001Oyr-0F for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Mar 2026 16:28:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w3ciV-007Gn1-13 for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Mar 2026 16:28:55 +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.96) (envelope-from ) id 1w3ciV-007Gmj-0A for pgsql-hackers@lists.postgresql.org; Fri, 20 Mar 2026 16:28:55 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w3ciT-00000000C9H-2qNV for pgsql-hackers@lists.postgresql.org; Fri, 20 Mar 2026 16:28:54 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-b97ed4ad579so140560566b.3 for ; Fri, 20 Mar 2026 09:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774024132; cv=none; d=google.com; s=arc-20240605; b=gSlr+pcF43nXG8bhMSslDaUXPwZj27OtWyDp7BDIvM2p6ML6gm7/1ErvNlltvIbKT9 qMkkOgkJq+s0dR9Bym/61LotWEFbs7y0U7j7GUbCRzOGmWVLZC3JLIB25CdnAdE1KLFY v9WSD1xUD8B4Lhudbsfplcv81CBWcDZWJHAQyZO2lSWDRkuGIQW1agRWKGP9Y8U6M/1A ye5tLGJtaP3EJ8AyqYP6LnRGLT/rRaKI0OTmDsUecaUavxJ6FIcZ6z+YMFbKGYGtjbqQ o7Jpc2S48bY2x9FZeecXNmSnYX+YhB6SdW+BI+xS00VG4PzKeWmnjDJHahh2yHkHqfCi k62g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HVYPYv1+3bH1BWeAkGm2IMxUOFAK4rvxyojnzS4vJek=; fh=YhmxPC0NYagsxVMppzYMgO0XMWsRSWzMegLjmIklu8U=; b=YMq+AXEQlP5SzTDcThJLrLZuqZKYqKXlSdnguNjYUn4s3zgzY15HnfVyjHdyIbigMw UZlez1vloLtwZnP3g09u9lSjf2zQ8uh3E7C6cOO9EhuvuhBiqIm4nWZNtAlz5ZJGE3z+ 2meWeqvMaM1uk14qEltqT/MSPsrFCmn89zeBnm2j/RsPd1/ORmSkBIaiisFQWV+QEEO6 2FloAG/PDTodY6+MRbnYWrQri4hixkbohBDOFxk9AfoaR68Dt7L0xuAotSU4Xb9knKrk UUEp79WHovT1luyD2pnbSQWNj4fvIauPAOK53MXorTHqVVWHAJGloCjk1XMtV/qM7X6b l4Fw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1774024132; x=1774628932; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HVYPYv1+3bH1BWeAkGm2IMxUOFAK4rvxyojnzS4vJek=; b=Y0HLhH01jk7l6KKq4JfaRXeBWl2HkXfHcrPTVKKHdd0Ap3w00W6UVH5LikgVPtNrCm 84qb/2869noT5tuYPKyFvGrHo2OTCh53gvsMFtDmKugVtcsMwnvCHflOom+LAgCfFZPk rlJ+JNEFBAG30eaVt3RtmZtp19HgMjmJ9QLSjclFv4wjpr8ME6jaA84e27rZPZP59mmp iyrIyrXF7N0n8IXvr+C/0U91VAq13OOp2G8zz0PvZDMt2kWmjX9QiYymZ8ZNvSoB7dFw NqHLFFm+darLXvk1s97irKZuVt/vZgq0APxWRsymycM3uWtNL+oFqlu4rb1bvrwG83zJ LVCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774024132; x=1774628932; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HVYPYv1+3bH1BWeAkGm2IMxUOFAK4rvxyojnzS4vJek=; b=O2Pf0cpLM5UU1F6cJgHM82v/P6nfZc//AAy/fN6T7Lf2UY7M7cpjdv5W8PIvpwElY5 2LiWBk+IhAJibaEge0xMOrc2PN7wwZKUo6EBdMBDoMix1kp5BjZBUoNKUXAEqjpPti9T r5pyR0PFVI/q/feE+ALIZ9Urll5P5wLCFfQF6VTerhIbKwPSs2o/ODANMjIAPdsf6jye j8JhvBG1GuzeTB+23HePN7nwhEKgT9N2oq0Q+ejNgMcB4417Pb4IHo44uHZ/+HUgiHO8 zm2FiOeS60AQU13HL7DRVtSm7OaYygfDJhZ0KyMs4WDX1zBKtTkY0cNbu8jFc4x5qXYj CEvQ== X-Gm-Message-State: AOJu0YyDS+bL+Qwdptf7/nd3sMiLiIcFaN5rVnK3IoPUjTctGVMdnrwG 4ZRRxIFHzuPt3YW+w8g80r6vL0oVV7Nw+Ih43lb+7PhRzo1ti18lPyV3mpIZ06NhO2lFqkhI2lp /HU0N/fysLMkEZn/4jUOeJ70viQOev10= X-Gm-Gg: ATEYQzziYUAQuE841E3bq6FULGqyiIeFykorq2Izxz6KS7O1Pl5aQX2YUzxMubViRMI H1DLjcplix2VpZ7bnjgbSG0kr+6YcfSAbz2nwkN3zVLrqf8UQVTy6czgnqWDWLpkZpedXwUCNcW ivEqScM5LBmP/TIQT1JX5aZA3KPlZq2tSfnB4iqgfQsOq65PTu5c51RGCySkKtC9M9w4pR0q3hz ZNFiw8Mvw/CawfpqWKuGwx9e6wYj8YC8dD14ziPjdlPm743bvTuRlnWEd2NTiBX6l6Buqe4WDpP 0IevVPqv462i2eA65sUghvqNeVqK93Qo7MWXU30= X-Received: by 2002:a17:906:1b17:b0:b97:91c0:fc3b with SMTP id a640c23a62f3a-b982f242b11mr249767766b.16.1774024131988; Fri, 20 Mar 2026 09:28:51 -0700 (PDT) MIME-Version: 1.0 References: <1628959.1774023745@sss.pgh.pa.us> In-Reply-To: <1628959.1774023745@sss.pgh.pa.us> From: Robert Haas Date: Fri, 20 Mar 2026 12:28:39 -0400 X-Gm-Features: AaiRm50QL-rARKLlPeCBMBHhs76m_lP6ruiVbzmKeuDUPm0cEnX8-JvkChRy4X0 Message-ID: Subject: Re: TupleDescAttr bounds checks To: Tom Lane Cc: PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Mar 20, 2026 at 12:22=E2=80=AFPM Tom Lane wrote= : > Robert Haas writes: > > Scrutiny of a recent test_plan_advice failure in the buildfarm > > revealed a bug that had nothing to do with test_plan_advice or > > pg_plan_advice; rather, it was a bug introduced by the virtual > > generated columns feature, and specifically of that feature indexing > > off of the beginning of a TupleDesc when whole-row attributes are > > present. The first patch attached to this email fixes this issue, and > > should be committed and back-patched to v18. I plan to do that soon > > unless there are objections. > > I had just come to the same conclusion about why grison is failing. > +1 to all three of these patches. (I did not look to see if 0002 > fixes every case that the Assert could trigger on, but as long as > you're only putting it in HEAD I'm not too concerned that we might > have missed some.) Hmm, I had a rougher version of this analysis (and an analysis of some the other failures) on an email I sent yesterday on the pg_plan_advice thread. Based on this email and another one you sent, I'm guessing you either didn't see that email or maybe even didn't get a copy of it for some reason. Or maybe you just mean that you were checking over my analysis, but just in case: https://www.postgresql.org/message-id/CA%2BTgmoZUN8FT1Ah%3Dm6Uis5bHa4FUa%2B= _hMDWtcABG17toEfpiUg%40mail.gmail.com --=20 Robert Haas EDB: http://www.enterprisedb.com