Thread: Logging nested function calls...
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."
On 1/10/06, Mario Splivalo <mario.splivalo@mobart.hr> wrote:
smiply use:
raise log '....'
at the beginning of your functions.
will work.
depesz
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
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 >