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

Commit b58bacd

Browse files
committed
PL/pgSQL RETURN NEXT was leaking converted tuples, causing
out of memory when looping through large numbers of rows. Flag the converted tuples to be freed. Complaint and patch by Joe.
1 parent fd71421 commit b58bacd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pl/plpgsql/src/pl_exec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,6 +2472,7 @@ exec_stmt_return_next(PLpgSQL_execstate *estate,
24722472
{
24732473
tuple = do_convert_tuple(tuple, tupmap);
24742474
free_conversion_map(tupmap);
2475+
free_tuple = true;
24752476
}
24762477
}
24772478
break;

0 commit comments

Comments
 (0)