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 50c8348 commit 5f6de23Copy full SHA for 5f6de23
src/hooks.c
@@ -27,6 +27,7 @@
27
#include "xact_handling.h"
28
29
#include "access/transam.h"
30
+#include "access/xact.h"
31
#include "catalog/pg_authid.h"
32
#include "miscadmin.h"
33
#include "optimizer/cost.h"
@@ -770,6 +771,11 @@ pathman_post_parse_analyze_hook(ParseState *pstate, Query *query)
770
771
if (!IsPathmanReady())
772
return;
773
774
+#if defined(PGPRO_EE)
775
+ if (getNestLevelATX() != 0)
776
+ elog(FATAL, "pg_pathman extension is not compatible with autonomous transactions and connection pooling");
777
+#endif /* PGPRO_EE */
778
+
779
/* Process inlined SQL functions (we've already entered planning stage) */
780
if (IsPathmanReady() && get_planner_calls_count() > 0)
781
{
0 commit comments