Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7aa7d1c

Browse filesBrowse files
committed
Allow atx back again.
1 parent cbdde20 commit 7aa7d1c
Copy full SHA for 7aa7d1c

File tree

3 files changed

+1
-11
lines changed
Filter options

3 files changed

+1
-11
lines changed

‎src/hooks.c

Copy file name to clipboardExpand all lines: src/hooks.c
-5Lines 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

Copy file name to clipboardExpand all lines: src/include/partition_filter.h
+1Lines 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

Copy file name to clipboardExpand all lines: src/partition_filter.c
-6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.