Re: Use of "long" in incremental sort code - Mailing list pgsql-hackers

From Tomas Vondra
Subject Re: Use of "long" in incremental sort code
Date
Msg-id 20201021210005.lgod7wnuzvpo4wxo@development
Whole thread Raw
In response to RE: Use of "long" in incremental sort code  ("Tang, Haiying" <tanghy.fnst@cn.fujitsu.com>)
Responses Re: Use of "long" in incremental sort code
List pgsql-hackers
On Wed, Oct 21, 2020 at 06:06:52AM +0000, Tang, Haiying wrote:
>Hi
>
>>Found one more place needed to be changed(long -> int64).
>>
>>Also changed the output for int64 data(Debug mode on & define EXEC_SORTDEBUG )
>>
>>And, maybe there's a typo in " src\backend\executor\nodeIncrementalSort.c" as below.
>>Obviously, the ">=" is meaningless, right?
>>
>>And, maybe there's a typo in " src\backend\executor\nodeIncrementalSort.c" as below.
>>Obviously, the ">=" is meaningless, right?
>>
>>-        SO1_printf("Sorting presorted prefix tuplesort with >= %ld tuples\n", nTuples);
>>+        SO1_printf("Sorting presorted prefix tuplesort with %ld tuples\n", nTuples);
>>
>>Please take a check at the attached patch file.
>
>I have added it to commit fest.
>https://commitfest.postgresql.org/30/2772/
>

Thanks, the changes seem fine to me. I'll do a bit more review and get
it pushed.


regards
Tomas



pgsql-hackers by date:

Previous
From: Mark Dilger
Date:
Subject: Re: new heapcheck contrib module
Next
From: "David G. Johnston"
Date:
Subject: Re: [PATCH] Add section headings to index types doc