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

Re: Re: plpgsql: Debug function?

From: Turbo Fredriksson <turbo(at)bayour(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: plpgsql: Debug function?
Date: 2001-07-26 10:16:52
Message-ID: 87bsm8ngff.fsf@papadoc.bayour.com (view raw or flat)
Thread:
Lists: pgsql-hackers
>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

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

    Tom> Also try turning on query logging, so you can see in the
    Tom> postmaster log the queries plpgsql is sending to the SQL
    Tom> engine.

Would that be the 'debug_print_query = true' in posgresql.conf?

It IS true, but still nothing in the syslog...

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

PLO Legion of Doom domestic disruption Clinton spy Rule Psix Nazi
quiche radar fissionable BATF SDI bomb security NSA
[See http://www.aclu.org/echelonwatch/index.html for more about this]

In response to

Responses

pgsql-hackers by date

Next:From: Turbo FredrikssonDate: 2001-07-26 10:46:16
Subject: plpgsql: 'SELECT * FROM tbl'
Previous:From: John GrayDate: 2001-07-26 10:15:10
Subject: Linking a shared library against a C function

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