Re: plpgsql: Debug function?

Поиск
Список
Период
Сортировка
От Turbo Fredriksson
Тема Re: plpgsql: Debug function?
Дата
Msg-id 87zo9txcjc.fsf@papadoc.bayour.com
обсуждение исходный текст
Ответ на plpgsql: Debug function?  (Turbo Fredriksson <turbo@bayour.com>)
Ответы Re: plpgsql: Debug function?  (Joel Burton <jburton@scw.org>)
Re: Re: plpgsql: Debug function?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>>>>> "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
RAISEEXCEPTION.
 

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...

-- Turbo     __ _     Debian GNU     Unix _IS_ user friendly - it's just ^^^^^    / /(_)_ __  _   ___  __  selective
aboutwho its friends are         / / | | '_ \| | | \ \/ /   Debian Certified Linux Developer   _ /// / /__| | | | | |_|
|> <  Turbo Fredriksson   turbo@tripnet.se \\\/  \____/_|_| |_|\__,_/_/\_\ Stockholm/Sweden
 

radar Marxist counter-intelligence 747 Kennedy Serbian CIA NSA SEAL
Team 6 FSF [Hello to all my fans in domestic surveillance] Clinton FBI
Soviet class struggle
[See http://www.aclu.org/echelonwatch/index.html for more about this]


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

Предыдущее
От: "Vladimir V. Zolotych"
Дата:
Сообщение: PostgreSQL 7.0 problem (may be bug?)
Следующее
От: Joel Burton
Дата:
Сообщение: Re: plpgsql: Debug function?