mirror of
https://github.com/postgres/postgres.git
synced 2026-06-10 01:23:20 -04:00
Add traceback information to PL/Python errors
This mimics the traceback information the Python interpreter prints with exceptions. Jan Urbański
This commit is contained in:
@@ -3,4 +3,7 @@ NOTICE: This is plpythonu.
|
||||
CONTEXT: PL/Python anonymous code block
|
||||
DO $$ nonsense $$ LANGUAGE plpythonu;
|
||||
ERROR: NameError: global name 'nonsense' is not defined
|
||||
CONTEXT: PL/Python anonymous code block
|
||||
CONTEXT: Traceback (most recent call last):
|
||||
PL/Python anonymous code block, line 1, in <module>
|
||||
nonsense
|
||||
PL/Python anonymous code block
|
||||
|
||||
Reference in New Issue
Block a user