Content-Length: 254977 | pFad | http://github.com/postgrespro/postgres/commit/b58bacdacbb15948cf24c786ebbb92213a2fe013

98 PL/pgSQL RETURN NEXT was leaking converted tuples, causing · postgrespro/postgres@b58bacd · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/b58bacdacbb15948cf24c786ebbb92213a2fe013

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy