Re: problem with plpgsql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problem with plpgsql
Дата
Msg-id 29581.1120084482@sss.pgh.pa.us
обсуждение исходный текст
Ответ на problem with plpgsql  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Список 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 по дате отправления:

Предыдущее
От: Andreas 'ads' Scherbaum
Дата:
Сообщение: Catch the commit
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Checkpoint cost, looks like it is WAL/CRC