Fix incorrect comments in tuplesort.c - Mailing list pgsql-hackers

From cca5507
Subject Fix incorrect comments in tuplesort.c
Date
Msg-id tencent_6FA14F85D6B5B5291532D6789E07F4765C08@qq.com
Whole thread Raw
Responses Re: Fix incorrect comments in tuplesort.c
List pgsql-hackers
Hi,

The incorrect comment:

```
/*
 * Initial size of memtuples array.  We're trying to select this size so that
 * array doesn't exceed ALLOCSET_SEPARATE_THRESHOLD and so that the overhead of
 * allocation might possibly be lowered.  However, we don't consider array sizes
 * less than 1024.
 *
 */
#define INITIAL_MEMTUPSIZE Max(1024, \
    ALLOCSET_SEPARATE_THRESHOLD / sizeof(SortTuple) + 1)
```

The "doesn't exceed" are contrary to the macro. Maybe "slightly exceed"?

Attach a small patch. (also remove the empty line in this comment)

--
Regards,
ChangAo Chen

Attachment

pgsql-hackers by date:

Previous
From: Marcos Pegoraro
Date:
Subject: Initial COPY of Logical Replication is too slow
Next
From: Dilip Kumar
Date:
Subject: Re: Proposal: Conflict log history table for Logical Replication