summaryrefslogtreecommitdiff
path: root/src/pl/plpython/plpython_error.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/pl/plpython/plpython_error.sql')
-rw-r--r--src/pl/plpython/plpython_error.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pl/plpython/plpython_error.sql b/src/pl/plpython/plpython_error.sql
new file mode 100644
index 0000000000..2f0486fed9
--- /dev/null
+++ b/src/pl/plpython/plpython_error.sql
@@ -0,0 +1,9 @@
+
+-- test error handling, i forgot to restore Warn_restart in
+-- the trigger handler once. the errors and subsequent core dump were
+-- interesting.
+
+SELECT invalid_type_uncaught('rick');
+SELECT invalid_type_caught('rick');
+SELECT invalid_type_reraised('rick');
+SELECT valid_type('rick');