Skip to content

Commit 7197b83

Browse files
author
Maxim Orlov
committed
Fix build with enable-dtrace
refer to issue #108
1 parent 1c6d616 commit 7197b83

File tree

8 files changed

+38
-0
lines changed

8 files changed

+38
-0
lines changed

src/disable_core_macro.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*-------------------------------------------------------------------------
2+
*
3+
* disable_core_macro.h
4+
* Support including tuplesort.c from postgresql core code.
5+
*
6+
* Copyright (c) 2022, Postgres Professional
7+
*
8+
*-------------------------------------------------------------------------
9+
*/
10+
11+
#ifndef __DISABLE_CORE_MACRO_H__
12+
#define __DISABLE_CORE_MACRO_H__
13+
14+
#undef TRACE_SORT
15+
#undef DEBUG_BOUNDED_SORT
16+
#undef TRACE_POSTGRESQL_SORT_START
17+
#undef TRACE_POSTGRESQL_SORT_DONE
18+
19+
#define TRACE_POSTGRESQL_SORT_START(arg1, arg2, arg3, arg4, arg5, arg6) \
20+
do {} while(0)
21+
#define TRACE_POSTGRESQL_SORT_DONE(arg1, arg2) \
22+
do {} while(0)
23+
24+
#endif /* __DISABLE_CORE_MACRO_H__ */

src/tuplesort10.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@
143143
#include "utils/sortsupport.h"
144144
#include "utils/tuplesort.h"
145145

146+
/* Should be the last include */
147+
#include "disable_core_macro.h"
146148

147149
/* sort-type codes for sort__start probes */
148150
#define HEAP_SORT 0

src/tuplesort11.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@
114114
#include "utils/sortsupport.h"
115115
#include "utils/tuplesort.h"
116116

117+
/* Should be the last include */
118+
#include "disable_core_macro.h"
117119

118120
/* sort-type codes for sort__start probes */
119121
#define HEAP_SORT 0

src/tuplesort12.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@
114114
#include "utils/sortsupport.h"
115115
#include "utils/tuplesort.h"
116116

117+
/* Should be the last include */
118+
#include "disable_core_macro.h"
117119

118120
/* sort-type codes for sort__start probes */
119121
#define HEAP_SORT 0

src/tuplesort13.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@
114114
#include "utils/sortsupport.h"
115115
#include "utils/tuplesort.h"
116116

117+
/* Should be the last include */
118+
#include "disable_core_macro.h"
117119

118120
/* sort-type codes for sort__start probes */
119121
#define HEAP_SORT 0

src/tuplesort14.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@
114114
#include "utils/sortsupport.h"
115115
#include "utils/tuplesort.h"
116116

117+
/* Should be the last include */
118+
#include "disable_core_macro.h"
117119

118120
/* sort-type codes for sort__start probes */
119121
#define HEAP_SORT 0

src/tuplesort15.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118
#include "utils/sortsupport.h"
119119
#include "utils/tuplesort.h"
120120

121+
/* Should be the last include */
122+
#include "disable_core_macro.h"
121123

122124
/* sort-type codes for sort__start probes */
123125
#define HEAP_SORT 0

src/tuplesort96.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@
141141
#include "utils/sortsupport.h"
142142
#include "utils/tuplesort.h"
143143

144+
/* Should be the last include */
145+
#include "disable_core_macro.h"
144146

145147
/* sort-type codes for sort__start probes */
146148
#define HEAP_SORT 0

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