mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-07 17:47:37 +08: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