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 cbdde20

Browse filesBrowse files
committed
One more atx check inside executor.
1 parent dddaa24 commit cbdde20
Copy full SHA for cbdde20

File tree

1 file changed

+7
-0
lines changed
Filter options

1 file changed

+7
-0
lines changed

‎src/partition_filter.c

Copy file name to clipboardExpand all lines: src/partition_filter.c
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "utils.h"
1818

1919
#include "access/htup_details.h"
20+
#include "access/xact.h"
2021
#include "catalog/pg_class.h"
2122
#include "catalog/pg_type.h"
2223
#include "foreign/fdwapi.h"
@@ -733,6 +734,12 @@ partition_filter_exec(CustomScanState *node)
733734
PlanState *child_ps = (PlanState *) linitial(node->custom_ps);
734735
TupleTableSlot *slot;
735736

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+
736743
slot = ExecProcNode(child_ps);
737744

738745
if (!TupIsNull(slot))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.