Logging nested function calls...

Поиск
Список
Период
Сортировка
Искать

Logging nested function calls...

От:
Mario Splivalo <mario.splivalo@mobart.hr>
Дата:
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."


Re: Logging nested function calls...

От:
hubert depesz lubaczewski <depesz@gmail.com>
Дата:
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

Re: Logging nested function calls...

От:
"codeWarrior" <gpatnude@hotmail.com>
Дата:
What about putting a "RAISE NOTICE" statement inside each of your child 
functions ?


"Mario Splivalo"  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
> 


FAQ