public inbox for [email protected]  
help / color / mirror / Atom feed
From: Robert Haas <[email protected]>
To: Tom Lane <[email protected]>
Cc: PostgreSQL Hackers <[email protected]>
Subject: Re: TupleDescAttr bounds checks
Date: Fri, 20 Mar 2026 13:02:35 -0400
Message-ID: <CA+TgmoYpi48MV1RoqkLpwSg5b-ySYJ6Vx5yXjOS3hS6oJWwtzw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CA+TgmoacixUZVvi00hOjk_d9B4iYKswWP1gNqQ8Vfray-AcOCA@mail.gmail.com>
	<[email protected]>
	<CA+TgmoaiPqnV2ePY-DyQUVGnK5sJ5ryPCDYpn_+1Ua4JwfoqRw@mail.gmail.com>
	<[email protected]>

On Fri, Mar 20, 2026 at 12:46 PM Tom Lane <[email protected]> wrote:
> I did see that, but it read to me that you were just guessing at that
> time.  This morning I put Asserts into indexcmds.c that verified that
> it was trying to access the tupledesc for attno zero, and that proves
> there is a bug there.  It also seems like a plausible explanation for
> why only one machine has exhibited the failure.  (Your 0002 is a
> better version of said Asserts.)

Ah, OK. Yeah, I wasn't completely sure at the time whether there was
some kind of TupleDesc out there that would allow zero or negative
indexes safely. It seems like there is not.

-- 
Robert Haas
EDB: http://www.enterprisedb.com





view thread (10+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: TupleDescAttr bounds checks
  In-Reply-To: <CA+TgmoYpi48MV1RoqkLpwSg5b-ySYJ6Vx5yXjOS3hS6oJWwtzw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox