Pavel Stehule <stehule@kix.fsv.cvut.cz> writes:
> Hello
> In my code I evaluate expr
> select array(select generate_series from generate_series(1,800)
> my code
> var = (PLpgSQL_var *) (estate->datums[stmt->varno]);
> value = exec_eval_expr(estate, stmt->expr, &isnull, &valtype);
> exec_eval_cleanup(estate);
> and iteration over array
Uh, once you've done the exec_eval_cleanup, you can't use the result of
exec_eval_expr anymore.
Do I guess correctly that you're trying to do backend development
without having configured --enable-cassert? Bad idea.
regards, tom lane