Re: plpgsql: Debug function? - Mailing list pgsql-hackers

From Turbo Fredriksson
Subject Re: plpgsql: Debug function?
Date
Msg-id 87zo9txcjc.fsf@papadoc.bayour.com
Whole thread Raw
In response to plpgsql: Debug function?  (Turbo Fredriksson <turbo@bayour.com>)
Responses Re: plpgsql: Debug function?
Re: Re: plpgsql: Debug function?
List 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 by date:

Previous
From: "Vladimir V. Zolotych"
Date:
Subject: PostgreSQL 7.0 problem (may be bug?)
Next
From: Joel Burton
Date:
Subject: Re: plpgsql: Debug function?