Remove debug messages from tuplesort_sort_memtuples()

These were of value only during development.

Reported by Justin Pryzby
Discussion: https://www.postgresql.org/message-id/20220519201254.GU19626%40telsasoft.com
This commit is contained in:
John Naylor 2022-05-23 13:11:43 +07:00
parent 7fdbdf2049
commit 6e647ef0e7

View File

@ -3664,7 +3664,6 @@ tuplesort_sort_memtuples(Tuplesortstate *state)
{
if (state->sortKeys[0].comparator == ssup_datum_unsigned_cmp)
{
elog(DEBUG1, "qsort_tuple_unsigned");
qsort_tuple_unsigned(state->memtuples,
state->memtupcount,
state);
@ -3673,7 +3672,6 @@ tuplesort_sort_memtuples(Tuplesortstate *state)
#if SIZEOF_DATUM >= 8
else if (state->sortKeys[0].comparator == ssup_datum_signed_cmp)
{
elog(DEBUG1, "qsort_tuple_signed");
qsort_tuple_signed(state->memtuples,
state->memtupcount,
state);
@ -3682,7 +3680,6 @@ tuplesort_sort_memtuples(Tuplesortstate *state)
#endif
else if (state->sortKeys[0].comparator == ssup_datum_int32_cmp)
{
elog(DEBUG1, "qsort_tuple_int32");
qsort_tuple_int32(state->memtuples,
state->memtupcount,
state);
@ -3693,13 +3690,11 @@ tuplesort_sort_memtuples(Tuplesortstate *state)
/* Can we use the single-key sort function? */
if (state->onlyKey != NULL)
{
elog(DEBUG1, "qsort_ssup");
qsort_ssup(state->memtuples, state->memtupcount,
state->onlyKey);
}
else
{
elog(DEBUG1, "qsort_tuple");
qsort_tuple(state->memtuples,
state->memtupcount,
state->comparetup,