Skip site navigation (1) Skip section navigation (2)

Re: plpgsql: Debug function?

From: Joel Burton <jburton(at)scw(dot)org>
To: Turbo Fredriksson <turbo(at)bayour(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: plpgsql: Debug function?
Date: 2001-07-25 15:25:56
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On 25 Jul 2001, Turbo Fredriksson wrote:

> >>>>> "Joel" == Joel Burton <jburton(at)scw(dot)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(at)scw(dot)org>
Director of Information Systems, Support Center of Washington

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2001-07-25 15:38:04
Subject: Re: PostgreSQL 7.0 problem (may be bug?)
Previous:From: Turbo FredrikssonDate: 2001-07-25 15:18:31
Subject: Re: plpgsql: Debug function?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group