Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7aa7d1c

Browse files
committed
Allow atx back again.
1 parent cbdde20 commit 7aa7d1c

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

src/hooks.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -771,11 +771,6 @@ pathman_post_parse_analyze_hook(ParseState *pstate, Query *query)
771771
if (!IsPathmanReady())
772772
return;
773773

774-
#if defined(PGPRO_EE)
775-
if (getNestLevelATX() != 0)
776-
elog(ERROR, "pg_pathman extension is not compatible with autonomous transactions");
777-
#endif /* PGPRO_EE */
778-
779774
/* Process inlined SQL functions (we've already entered planning stage) */
780775
if (IsPathmanReady() && get_planner_calls_count() > 0)
781776
{

src/include/partition_filter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ struct ResultPartsStorage
7676
EState *estate; /* pointer to executor's state */
7777
CmdType command_type; /* INSERT | UPDATE */
7878

79+
/* partition relid -> ResultRelInfoHolder */
7980
HTAB *result_rels_table;
8081
HASHCTL result_rels_table_config;
8182

src/partition_filter.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -734,12 +734,6 @@ partition_filter_exec(CustomScanState *node)
734734
PlanState *child_ps = (PlanState *) linitial(node->custom_ps);
735735
TupleTableSlot *slot;
736736

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-
743737
slot = ExecProcNode(child_ps);
744738

745739
if (!TupIsNull(slot))

0 commit comments

Comments
 (0)