pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedLogging nested function calls...
3+ messages / 3 participants
[nested] [flat]
* Logging nested function calls...
@ 2006-01-10 13:45 Mario Splivalo <mario.splivalo@mobart.hr>
0 siblings, 2 replies; 3+ messages in thread
From: Mario Splivalo @ 2006-01-10 13:45 UTC (permalink / raw)
To: pgsql-admin
Dobar dan! (Means 'good day' in Croatian)
I have a postgres (plpgsql) function that calls other (plpgsql and sql)
functions. Those plpgsql functions then may call other plpsql or sql
functions.
The 'problem' is that, in the log file, I only see the top calling
function, the one that client called. Is there a way to tell postgres to
log all the nested functions?
I'm using postgresql 8.1.2.
Thanks in advance.
Mike
--
Mario Splivalo
Mob-Art
mario.splivalo@mobart.hr
"I can do it quick, I can do it cheap, I can do it well. Pick any two."
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Logging nested function calls...
@ 2006-01-10 16:03 codeWarrior <gpatnude@hotmail.com>
parent: Mario Splivalo <mario.splivalo@mobart.hr>
1 sibling, 0 replies; 3+ messages in thread
From: codeWarrior @ 2006-01-10 16:03 UTC (permalink / raw)
To: pgsql-admin
What about putting a "RAISE NOTICE" statement inside each of your child
functions ?
"Mario Splivalo" <mario.splivalo@mobart.hr> wrote in message
news:1136900753.8807.31.camel@localhost.localdomain...
> Dobar dan! (Means 'good day' in Croatian)
>
> I have a postgres (plpgsql) function that calls other (plpgsql and sql)
> functions. Those plpgsql functions then may call other plpsql or sql
> functions.
>
> The 'problem' is that, in the log file, I only see the top calling
> function, the one that client called. Is there a way to tell postgres to
> log all the nested functions?
>
> I'm using postgresql 8.1.2.
>
> Thanks in advance.
>
> Mike
> --
> Mario Splivalo
> Mob-Art
> mario.splivalo@mobart.hr
>
> "I can do it quick, I can do it cheap, I can do it well. Pick any two."
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Logging nested function calls...
@ 2006-01-10 16:20 hubert depesz lubaczewski <depesz@gmail.com>
parent: Mario Splivalo <mario.splivalo@mobart.hr>
1 sibling, 0 replies; 3+ messages in thread
From: hubert depesz lubaczewski @ 2006-01-10 16:20 UTC (permalink / raw)
To: mario.splivalo@mobart.hr; +Cc: pgsql-admin
On 1/10/06, Mario Splivalo <mario.splivalo@mobart.hr> wrote:
>
> The 'problem' is that, in the log file, I only see the top calling
> function, the one that client called. Is there a way to tell postgres to
> log all the nested functions?
>
smiply use:
raise log '....'
at the beginning of your functions.
will work.
depesz
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-01-10 16:20 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-01-10 13:45 Logging nested function calls... Mario Splivalo <mario.splivalo@mobart.hr>
2006-01-10 16:03 ` codeWarrior <gpatnude@hotmail.com>
2006-01-10 16:20 ` hubert depesz lubaczewski <depesz@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox