- Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathdisable_core_macro.h
33 lines (25 loc) · 813 Bytes
/
disable_core_macro.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*-------------------------------------------------------------------------
*
* disable_core_macro.h
* Support including tuplesort.c from postgresql core code.
*
* Copyright (c) 2022-2024, Postgres Professional
*
*-------------------------------------------------------------------------
*/
#ifndef__DISABLE_CORE_MACRO_H__
#define__DISABLE_CORE_MACRO_H__
#undef TRACE_SORT
#undef DEBUG_BOUNDED_SORT
#undef TRACE_POSTGRESQL_SORT_START
#undef TRACE_POSTGRESQL_SORT_DONE
#ifPG_VERSION_NUM >= 110000
#defineTRACE_POSTGRESQL_SORT_START(arg1, arg2, arg3, arg4, arg5, arg6) \
do {} while(0)
#else
#defineTRACE_POSTGRESQL_SORT_START(arg1, arg2, arg3, arg4, arg5) \
do {} while(0)
#endif
#defineTRACE_POSTGRESQL_SORT_DONE(arg1, arg2) \
do {} while(0)
#endif/* __DISABLE_CORE_MACRO_H__ */