Remove debug messages from tuplesort_sort_memtuples()
authorJohn Naylor <john.naylor@postgresql.org>
Mon, 23 May 2022 06:11:43 +0000 (13:11 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Mon, 23 May 2022 06:11:43 +0000 (13:11 +0700)
These were of value only during development.

Reported by Justin Pryzby
Discussion: https://www.postgresql.org/message-id/20220519201254.GU19626%40telsasoft.com

src/backend/utils/sort/tuplesort.c

index 8340a66052614ac949e83bab6c1dce7eb643fe6c..31554fd867dba3ae24e1067620f7a957a2517525 100644 (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,