Skip to content

Commit bf0a84c

Browse files
committed
Use more specific macro for previous cbbf906.
1 parent cbbf906 commit bf0a84c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/include/compat/pg_compat.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "commands/trigger.h"
2727
#include "executor/executor.h"
2828
#include "nodes/memnodes.h"
29+
#include "nodes/nodeFuncs.h"
2930
#if PG_VERSION_NUM >= 120000
3031
#include "nodes/pathnodes.h"
3132
#else
@@ -994,11 +995,11 @@ extern AttrNumber *convert_tuples_by_name_map(TupleDesc indesc,
994995

995996
/*
996997
* [PGPRO-3725] Since 11.7 and 12.1 in pgpro standard and ee PGPRO-2843
997-
* appeared, changing the signature, wow. It is not present in pgpro 1c
998-
* though; PG_VERSION_STR is defined in std and ee but not in 1c, so it is
999-
* hackishly used for distinguishing them.
998+
* appeared, changing the signature, wow. There is no numeric pgpro edition
999+
* macro (and never will be, for old versions), so distinguish via macro added
1000+
* by the commit.
10001001
*/
1001-
#if defined(PGPRO_VERSION_STR) && (PG_VERSION_NUM >= 110006)
1002+
#ifdef QTW_DONT_COPY_DEFAULT
10021003
#define expression_tree_mutator_compat(node, mutator, context) \
10031004
expression_tree_mutator((node), (mutator), (context), 0)
10041005
#else

0 commit comments

Comments
 (0)