From: | "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net> |
---|---|
To: | Andres Freund <andres(at)2ndquadrant(dot)com> |
Cc: | Amit Langote <amitlangote09(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: A minor correction in comment in heaptuple.c |
Date: | 2013-06-18 17:38:00 |
Message-ID: | 20130618133800.19976c43@imp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, 18 Jun 2013 19:19:40 +0200
Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
> The NULL refers to the *meaning* of the function (remember, it's
> called slot_attisnull) . Which is to test whether an attribute is
> null. Not to a C NULL.
Actually, the comment is not for the function. It only describes the
two lines that follow. In C the string "NULL" is commonly a reference
to C's NULL value. Anyone reading C code can be excused for assuming
that if it isn't otherwise clear. How about "Indicate that the
attribute is NULL if out of range..."?
Although, the more I think about it, the more I think that the comment
is both confusing and superfluous. The code itself is much clearer.
--
D'Arcy J.M. Cain <darcy(at)druid(dot)net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 788 2246 (DoD#0082) (eNTP) | what's for dinner.
IM: darcy(at)Vex(dot)Net, VOIP: sip:darcy(at)Vex(dot)Net
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2013-06-18 17:40:24 | Re: SET work_mem = '1TB'; |
Previous Message | Josh Berkus | 2013-06-18 17:31:40 | Re: ASYNC Privileges proposal |