File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 21
21
22
22
#include "commands/tablespace.h"
23
23
#include "executor/executor.h"
24
- #include "utils/guc.h"
25
24
#include "utils/logtape.h"
26
25
#include "utils/pg_rusage.h"
27
26
52
51
* Below are copied definitions from src/backend/utils/sort/tuplesort.c.
53
52
*/
54
53
55
- /* GUC variables shouldn't be declared explicitely.
56
- Rather corresponigng include file should be include because it
57
- contains neccessary Windows export/import magic. And part of this
58
- magic should be done during postgres.exe compilation
59
- */
54
+ /* For PGPRO since v.13 trace_sort is imported from backend by including its
55
+ * declaration in guc.h (guc.h contains added Windows export/import magic to be done
56
+ * during postgres.exe compilation).
57
+ * For older or non-PGPRO versions on Windows platform trace_sort is not exported by
58
+ * backend so it is declared local for this case.
59
+ */
60
60
#ifdef TRACE_SORT
61
- #include <utils/guc.h>
61
+ #if PG_VERSION_NUM >= 130000 && defined (PGPRO_VERSION )
62
+ #include "utils/guc.h"
63
+ #else
64
+ bool trace_sort = false;
65
+ #endif
62
66
#endif
63
67
64
68
typedef struct
You can’t perform that action at this time.
0 commit comments