Re: plpgsql: Debug function?

Поиск
Список
Период
Сортировка
От Joel Burton
Тема Re: plpgsql: Debug function?
Дата
Msg-id Pine.LNX.4.21.0107251125380.19715-100000@olympus.scw.org
обсуждение исходный текст
Ответ на Re: plpgsql: Debug function?  (Turbo Fredriksson <turbo@bayour.com>)
Список pgsql-hackers
On 25 Jul 2001, Turbo Fredriksson wrote:

> >>>>> "Joel" == Joel Burton <jburton@scw.org> writes:
> 
>     Joel> On 25 Jul 2001, Turbo Fredriksson wrote:
>     >> Is there a way to debug a PL/pgSQL function? It's behaving very
>     >> irradic!
> 
>     Joel> It's crude, but you can output debugging statements w/ RAISE
>     Joel> NOTICE or catch flawed assumptions by RAISE EXCEPTION.
> 
> That's what I've been doing...
> 
> The problem is that a 'SELECT INTO ...' in the function don't work, but
> the actual SELECT in psql works fine! 
> 
> The variable I'm SELECT'ing into don't get initialized...

Can you post a simple, reproducible example?

-- 
Joel Burton   <jburton@scw.org>
Director of Information Systems, Support Center of Washington



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL 7.0 problem (may be bug?)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: plpgsql: Debug function?