A minor correction in comment in heaptuple.c - Mailing list pgsql-hackers

From Amit Langote
Subject A minor correction in comment in heaptuple.c
Date
Msg-id CA+HiwqFVGLvvyiEJzNjy+KeG+aU8PV3J4gK94bN4FXJesj7ikA@mail.gmail.com
Whole thread Raw
Responses Re: A minor correction in comment in heaptuple.c  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
Hi,

Should it be: "return true if attnum is out of range according to the
tupdesc" instead of "return NULL if attnum is out of range according
to the tupdesc" at src/backend/access/common/heaptuple.c: 1345

/*
 * return true if attnum is out of range according to the tupdesc
*/
if (attnum > tupleDesc->natts)
return true;

Attached patch fixes this.

--
Amit Langote

Attachment

pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Spin Lock sleep resolution
Next
From: Andres Freund
Date:
Subject: Re: extensible external toast tuple support