Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit7197b83

Browse files
author
Maxim Orlov
committed
Fix build with enable-dtrace
refer to issue#108
1 parent1c6d616 commit7197b83

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+
#defineTRACE_POSTGRESQL_SORT_START(arg1,arg2,arg3,arg4,arg5,arg6) \
20+
do {} while(0)
21+
#defineTRACE_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
#defineHEAP_SORT0

‎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
#defineHEAP_SORT0

‎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
#defineHEAP_SORT0

‎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
#defineHEAP_SORT0

‎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
#defineHEAP_SORT0

‎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
#defineHEAP_SORT0

‎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
#defineHEAP_SORT0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp