Incorrect comment in heapam.c

Поиск
Список
Период
Сортировка
Искать

Incorrect comment in heapam.c

От:
Peter Geoghegan <peter@2ndquadrant.com>
Дата:
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?

--=20
Peter Geoghegan =A0 =A0 =A0 http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services

Re: Incorrect comment in heapam.c

От:
Simon Riggs <simon@2ndQuadrant.com>
Дата:
On Tue, Dec 20, 2011 at 5:50 PM, Peter Geoghegan  wr=
ote:
> Line 834 of heapam.c has the following comment:
>
> /*
> =A0* This is formatted so oddly so that the correspondence to the macro
> =A0* definition in access/heapam.h is maintained.
> =A0*/
>
> In fact, that macro is defined in access/htup.h...should it be?

IMHO comment is wrong, code is in the right place.

--=20
=A0Simon Riggs=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 http:/=
/www.2ndQuadrant.com/
=A0PostgreSQL Development, 24x7 Support, Training & Services

Re: Incorrect comment in heapam.c

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Simon Riggs  writes:
> On Tue, Dec 20, 2011 at 5:50 PM, Peter Geoghegan  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

Re: Incorrect comment in heapam.c

От:
Peter Geoghegan <peter@2ndquadrant.com>
Дата:
On 20 December 2011 18:11, Tom Lane  wrote:
> Simon Riggs  writes:
>> On Tue, Dec 20, 2011 at 5:50 PM, Peter Geoghegan =
 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...

--=20
Peter Geoghegan =A0 =A0 =A0 http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services

Re: Incorrect comment in heapam.c

От:
Robert Haas <robertmhaas@gmail.com>
Дата:
On Wed, Dec 21, 2011 at 6:21 AM, Peter Geoghegan  wrote:
> On 20 December 2011 18:11, Tom Lane  wrote:
>> Simon Riggs  writes:
>>> On Tue, Dec 20, 2011 at 5:50 PM, Peter Geoghegan  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

Re: Incorrect comment in heapam.c

От:
Peter Geoghegan <peter@2ndquadrant.com>
Дата:
On 17 January 2012 01:37, Robert Haas  wrote:
>> It's a fairly inconsequential bug, but it is worth fixing...
>
> Fixed.

Thanks.

--=20
Peter Geoghegan =A0 =A0 =A0 http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services
FAQ