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.
REL8_4_STABLE
Joe Conway 14 years ago
parent 56c8d50eaf
commit 564b257e44
  1. 1
      src/pl/plpgsql/src/pl_exec.c

@ -2221,6 +2221,7 @@ exec_stmt_return_next(PLpgSQL_execstate *estate,
{
tuple = do_convert_tuple(tuple, tupmap);
free_conversion_map(tupmap);
free_tuple = true;
}
}
break;

Loading…
Cancel
Save