Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7197b83

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

8 files changed

+38
-0
lines changed

‎src/disable_core_macro.h

Copy file name to clipboard
+24Lines 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

Copy file name to clipboardExpand all lines: src/tuplesort10.c
+2Lines 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

Copy file name to clipboardExpand all lines: src/tuplesort11.c
+2Lines 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

Copy file name to clipboardExpand all lines: src/tuplesort12.c
+2Lines 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

Copy file name to clipboardExpand all lines: src/tuplesort13.c
+2Lines 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

Copy file name to clipboardExpand all lines: src/tuplesort14.c
+2Lines 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

Copy file name to clipboardExpand all lines: src/tuplesort15.c
+2Lines 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

Copy file name to clipboardExpand all lines: src/tuplesort96.c
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.