plpython error logs - Mailing list pgsql-general

From P. Scott DeVos
Subject plpython error logs
Date
Msg-id 43DF808A.6030908@countrysidetechnology.com
Whole thread Raw
Responses Re: plpython error logs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hey all

When using the Fedora Core 4 rpms for plpython, I find that when an
error is raised, the error logger does not report the line number of the
python function where the error was raised which makes debugging the
functions very difficult.

Using the native Windows installer, the line number is reported.

I have tried changing the log level to debug5 and raising the verbosity
which gives the line number of the plpython.c module that reports the
error, but still does not give the line number of the actual plpython code.

Does anyone know how to enable this feature?  Even better would be to
get the entire traceback to be logged.

Thanks,

Scott



pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: How to define variables in psql scripts?
Next
From: Tom Lane
Date:
Subject: Re: 8.0.3 regexp_replace()...