aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/portal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils/portal.h')
-rw-r--r--src/include/utils/portal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/utils/portal.h b/src/include/utils/portal.h
index cb40bfa761a..af0afcf9856 100644
--- a/src/include/utils/portal.h
+++ b/src/include/utils/portal.h
@@ -195,6 +195,8 @@ typedef struct PortalData
TimestampTz creation_time; /* time at which this portal was defined */
bool visible; /* include this portal in pg_cursors? */
+ /* Stuff added at the end to avoid ABI break in stable branches: */
+
/*
* Outermost ActiveSnapshot for execution of the portal's queries. For
* all but a few utility commands, we require such a snapshot to exist.
@@ -202,6 +204,7 @@ typedef struct PortalData
* and helps to reduce thrashing of the process's exposed xmin.
*/
Snapshot portalSnapshot; /* active snapshot, or NULL if none */
+ int createLevel; /* creating subxact's nesting level */
} PortalData;
/*
@@ -219,6 +222,7 @@ extern void AtCleanup_Portals(void);
extern void PortalErrorCleanup(void);
extern void AtSubCommit_Portals(SubTransactionId mySubid,
SubTransactionId parentSubid,
+ int parentLevel,
ResourceOwner parentXactOwner);
extern void AtSubAbort_Portals(SubTransactionId mySubid,
SubTransactionId parentSubid,