8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dddaa24 commit cbdde20Copy full SHA for cbdde20
src/partition_filter.c
@@ -17,6 +17,7 @@
17
#include "utils.h"
18
19
#include "access/htup_details.h"
20
+#include "access/xact.h"
21
#include "catalog/pg_class.h"
22
#include "catalog/pg_type.h"
23
#include "foreign/fdwapi.h"
@@ -733,6 +734,12 @@ partition_filter_exec(CustomScanState *node)
733
734
PlanState *child_ps = (PlanState *) linitial(node->custom_ps);
735
TupleTableSlot *slot;
736
737
+ /* If statement is prepared, parse_analyze hook won't catch this */
738
+#if defined(PGPRO_EE)
739
+ if (getNestLevelATX() != 0)
740
+ elog(ERROR, "pg_pathman extension is not compatible with autonomous transactions");
741
+#endif /* PGPRO_EE */
742
+
743
slot = ExecProcNode(child_ps);
744
745
if (!TupIsNull(slot))
0 commit comments