pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedIncorrect comment in heapam.c
6+ messages / 4 participants
[nested] [flat]
* Incorrect comment in heapam.c
@ 2011-12-20 17:50 Peter Geoghegan <peter@2ndquadrant.com>
0 siblings, 1 reply; 6+ messages in thread
From: Peter Geoghegan @ 2011-12-20 17:50 UTC (permalink / raw)
To: pgsql-bugs
Line 834 of heapam.c has the following comment:
/*
* This is formatted so oddly so that the correspondence to the macro
* definition in access/heapam.h is maintained.
*/
In fact, that macro is defined in access/htup.h...should it be?
--
Peter Geoghegan http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Incorrect comment in heapam.c
@ 2011-12-20 17:53 Simon Riggs <simon@2ndQuadrant.com>
parent: Peter Geoghegan <peter@2ndquadrant.com>
0 siblings, 1 reply; 6+ messages in thread
From: Simon Riggs @ 2011-12-20 17:53 UTC (permalink / raw)
To: Peter Geoghegan <peter@2ndquadrant.com>; +Cc: pgsql-bugs
On Tue, Dec 20, 2011 at 5:50 PM, Peter Geoghegan <peter@2ndquadrant.com> wrote:
> Line 834 of heapam.c has the following comment:
>
> /*
> * This is formatted so oddly so that the correspondence to the macro
> * definition in access/heapam.h is maintained.
> */
>
> In fact, that macro is defined in access/htup.h...should it be?
IMHO comment is wrong, code is in the right place.
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Incorrect comment in heapam.c
@ 2011-12-20 18:11 Tom Lane <tgl@sss.pgh.pa.us>
parent: Simon Riggs <simon@2ndQuadrant.com>
0 siblings, 1 reply; 6+ messages in thread
From: Tom Lane @ 2011-12-20 18:11 UTC (permalink / raw)
To: Simon Riggs <simon@2ndQuadrant.com>; +Cc: Peter Geoghegan <peter@2ndQuadrant.com>; pgsql-bugs
Simon Riggs <simon@2ndQuadrant.com> writes:
> On Tue, Dec 20, 2011 at 5:50 PM, Peter Geoghegan <peter@2ndquadrant.com> wrote:
>> In fact, that macro is defined in access/htup.h...should it be?
> IMHO comment is wrong, code is in the right place.
It used to be in heapam.h ... evidently, whoever moved it missed this
comment.
regards, tom lane
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Incorrect comment in heapam.c
@ 2011-12-21 11:21 Peter Geoghegan <peter@2ndquadrant.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 6+ messages in thread
From: Peter Geoghegan @ 2011-12-21 11:21 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Simon Riggs <simon@2ndquadrant.com>; pgsql-bugs
On 20 December 2011 18:11, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>> On Tue, Dec 20, 2011 at 5:50 PM, Peter Geoghegan <peter@2ndquadrant.com> wrote:
>>> In fact, that macro is defined in access/htup.h...should it be?
>
>> IMHO comment is wrong, code is in the right place.
>
> It used to be in heapam.h ... evidently, whoever moved it missed this
> comment.
I imagined that that was the case.
It's a fairly inconsequential bug, but it is worth fixing...
--
Peter Geoghegan http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Incorrect comment in heapam.c
@ 2012-01-17 01:37 Robert Haas <robertmhaas@gmail.com>
parent: Peter Geoghegan <peter@2ndquadrant.com>
0 siblings, 1 reply; 6+ messages in thread
From: Robert Haas @ 2012-01-17 01:37 UTC (permalink / raw)
To: Peter Geoghegan <peter@2ndquadrant.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Simon Riggs <simon@2ndquadrant.com>; pgsql-bugs
On Wed, Dec 21, 2011 at 6:21 AM, Peter Geoghegan <peter@2ndquadrant.com> wrote:
> On 20 December 2011 18:11, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Simon Riggs <simon@2ndQuadrant.com> writes:
>>> On Tue, Dec 20, 2011 at 5:50 PM, Peter Geoghegan <peter@2ndquadrant.com> wrote:
>>>> In fact, that macro is defined in access/htup.h...should it be?
>>
>>> IMHO comment is wrong, code is in the right place.
>>
>> It used to be in heapam.h ... evidently, whoever moved it missed this
>> comment.
>
> I imagined that that was the case.
>
> It's a fairly inconsequential bug, but it is worth fixing...
Fixed.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Incorrect comment in heapam.c
@ 2012-01-17 12:52 Peter Geoghegan <peter@2ndquadrant.com>
parent: Robert Haas <robertmhaas@gmail.com>
0 siblings, 0 replies; 6+ messages in thread
From: Peter Geoghegan @ 2012-01-17 12:52 UTC (permalink / raw)
To: Robert Haas <robertmhaas@gmail.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Simon Riggs <simon@2ndquadrant.com>; pgsql-bugs
On 17 January 2012 01:37, Robert Haas <robertmhaas@gmail.com> wrote:
>> It's a fairly inconsequential bug, but it is worth fixing...
>
> Fixed.
Thanks.
--
Peter Geoghegan http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2012-01-17 12:52 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-12-20 17:50 Incorrect comment in heapam.c Peter Geoghegan <peter@2ndquadrant.com>
2011-12-20 17:53 ` Simon Riggs <simon@2ndQuadrant.com>
2011-12-20 18:11 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-12-21 11:21 ` Peter Geoghegan <peter@2ndquadrant.com>
2012-01-17 01:37 ` Robert Haas <robertmhaas@gmail.com>
2012-01-17 12:52 ` Peter Geoghegan <peter@2ndquadrant.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox