1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-26 01:22:12 +03:00

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