|
Home > Archive > PostgreSQL Administration > January 2006 > Logging nested function calls...
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Logging nested function calls...
|
|
| Mario Splivalo 2006-01-10, 11:24 am |
| 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
| |
| codeWarrior 2006-01-10, 11:24 am |
| 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
>
| |
| hubert depesz lubaczewski 2006-01-10, 11:24 am |
| 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
|
|
|
|
|