|
27 | 27 | #include"xact_handling.h" |
28 | 28 |
|
29 | 29 | #include"access/transam.h" |
| 30 | +#include"access/xact.h" |
30 | 31 | #include"catalog/pg_authid.h" |
31 | 32 | #include"miscadmin.h" |
32 | 33 | #include"optimizer/cost.h" |
@@ -770,6 +771,11 @@ pathman_post_parse_analyze_hook(ParseState *pstate, Query *query) |
770 | 771 | if (!IsPathmanReady()) |
771 | 772 | return; |
772 | 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 | + |
773 | 779 | /* Process inlined SQL functions (we've already entered planning stage) */ |
774 | 780 | if (IsPathmanReady()&&get_planner_calls_count()>0) |
775 | 781 | { |
|