Re: problem with plpgsql - Mailing list pgsql-hackers

From Tom Lane
Subject Re: problem with plpgsql
Date
Msg-id 29581.1120084482@sss.pgh.pa.us
Whole thread Raw
In response to problem with plpgsql  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Andreas 'ads' Scherbaum
Date:
Subject: Catch the commit
Next
From: Tom Lane
Date:
Subject: Re: Checkpoint cost, looks like it is WAL/CRC