Skip to content

Commit 32625a7

Browse files
committed
Disable dtrace for rumsort.c
1 parent 830f559 commit 32625a7

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/rumsort.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "utils/guc.h"
2525
#include "utils/logtape.h"
2626
#include "utils/pg_rusage.h"
27-
#include "utils/probes.h"
2827

2928
#include "rum.h" /* RumItem */
3029

@@ -40,14 +39,6 @@
4039
#define LogicalTapeRewindForWrite(x, y) LogicalTapeRewind((x), (y), true)
4140
#endif
4241

43-
#if PG_VERSION_NUM >= 110000
44-
#define RUM_SORT_START(INT1, INT2, INT3, INT4, INT5) \
45-
TRACE_POSTGRESQL_SORT_START(INT1, INT2, INT3, INT4, INT5, false)
46-
#else
47-
#define RUM_SORT_START(INT1, INT2, INT3, INT4, INT5) \
48-
TRACE_POSTGRESQL_SORT_START(INT1, INT2, INT3, INT4, INT5)
49-
#endif
50-
5142
#if PG_VERSION_NUM >= 110000
5243
#define LogicalTapeSetCreate(X) LogicalTapeSetCreate(X, NULL, NULL, 1)
5344
#define LogicalTapeFreeze(X, Y) LogicalTapeFreeze(X, Y, NULL)
@@ -745,12 +736,6 @@ rum_tuplesort_begin_rum(int workMem, int nKeys, bool randomAccess,
745736

746737
state->nKeys = nKeys;
747738

748-
RUM_SORT_START(INDEX_SORT,
749-
false, /* no unique check */
750-
state->nKeys,
751-
workMem,
752-
randomAccess);
753-
754739
state->comparetup = comparetup_rum;
755740
state->copytup = copytup_rum;
756741
state->writetup = writetup_rum;
@@ -778,12 +763,6 @@ rum_tuplesort_begin_rumitem(int workMem, FmgrInfo *cmp)
778763
"begin rumitem sort: workMem = %d", workMem);
779764
#endif
780765

781-
RUM_SORT_START(INDEX_SORT,
782-
false, /* no unique check */
783-
2,
784-
workMem,
785-
false);
786-
787766
state->cmp = cmp;
788767
state->comparetup = comparetup_rumitem;
789768
state->copytup = copytup_rumitem;
@@ -841,15 +820,6 @@ rum_tuplesort_end(RumTuplesortstate *state)
841820
elog(LOG, "internal sort ended, %ld KB used: %s",
842821
spaceUsed, pg_rusage_show(&state->ru_start));
843822
}
844-
845-
TRACE_POSTGRESQL_SORT_DONE(state->tapeset != NULL, spaceUsed);
846-
#else
847-
848-
/*
849-
* If you disabled TRACE_SORT, you can still probe sort__done, but you
850-
* ain't getting space-used stats.
851-
*/
852-
TRACE_POSTGRESQL_SORT_DONE(state->tapeset != NULL, 0L);
853823
#endif
854824

855825
/* Free any execution state created for CLUSTER case */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy