File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2040,7 +2040,7 @@ CommitTransaction(void)
2040
2040
* If there weren't any, we are done ... otherwise loop back to check
2041
2041
* if they queued deferred triggers. Lather, rinse, repeat.
2042
2042
*/
2043
- if (!PreCommit_Portals (false))
2043
+ if (getNestLevelATX () != 0 || !PreCommit_Portals (false))
2044
2044
break ;
2045
2045
}
2046
2046
@@ -2280,7 +2280,7 @@ PrepareTransaction(void)
2280
2280
* If there weren't any, we are done ... otherwise loop back to check
2281
2281
* if they queued deferred triggers. Lather, rinse, repeat.
2282
2282
*/
2283
- if (! PreCommit_Portals (true ))
2283
+ if (getNestLevelATX () != 0 || ! PreCommit_Portals (false ))
2284
2284
break ;
2285
2285
}
2286
2286
Original file line number Diff line number Diff line change @@ -1230,15 +1230,15 @@ exec_stmt_block(PLpgSQL_execstate *estate, PLpgSQL_stmt_block *block)
1230
1230
edata = CopyErrorData ();
1231
1231
FlushErrorState ();
1232
1232
1233
+ estate -> eval_econtext = old_eval_econtext ;
1234
+
1233
1235
plpgsql_destroy_econtext (estate );
1234
1236
1235
1237
old_shared_estate = shared_simple_eval_estate ;
1236
1238
shared_simple_eval_estate = NULL ;
1237
1239
AbortCurrentTransaction ();
1238
1240
shared_simple_eval_estate = old_shared_estate ;
1239
1241
1240
- estate -> eval_econtext = old_eval_econtext ;
1241
-
1242
1242
if (block -> exceptions )
1243
1243
{
1244
1244
/* Look for a matching exception handler */
You can’t perform that action at this time.
0 commit comments