Re: [GENERAL] PL/Python debugging - line numbers

2009-07-15 Thread Mike Toews
OK, I figured some things out. Lines numbers are shown through PL/Python if it is a syntax error, but not for a runtime error. I'm not sure if this is because plpython.c only returns a partial stack trace, or what. The 6 year old TODO list doesn't mention this (but does mention that array argum

[GENERAL] PL/Python debugging - line numbers

2009-07-14 Thread Mike Toews
Hi, Debugging PL/Python isn't as easy as with PL/pgSQL, as it appears I can't see line numbers where errors occur. For example: ERROR: plpython: function "evaluate_something" failed DETAIL: : sequence index must be integer, not 'str' The location of this type of exception is difficult to