PL/Python anonymous code block, line 1, in <module>
plpy.info('first message', 'second message', message='third message')
PL/Python anonymous code block
--- raise exception in python, handle exception in plgsql
+-- raise exception in python, handle exception in plpgsql
CREATE OR REPLACE FUNCTION raise_exception(_message text, _detail text DEFAULT NULL, _hint text DEFAULT NULL,
_sqlstate text DEFAULT NULL,
_schema_name text DEFAULT NULL,
DO $$ plpy.info('first message', message='second message') $$ LANGUAGE plpython3u;
DO $$ plpy.info('first message', 'second message', message='third message') $$ LANGUAGE plpython3u;
--- raise exception in python, handle exception in plgsql
+-- raise exception in python, handle exception in plpgsql
CREATE OR REPLACE FUNCTION raise_exception(_message text, _detail text DEFAULT NULL, _hint text DEFAULT NULL,
_sqlstate text DEFAULT NULL,
_schema_name text DEFAULT NULL,
],
},
- # plgsql in the list blocks the dump of extension test_pg_dump
+ # plpgsql in the list blocks the dump of extension test_pg_dump
without_extension => {
dump_cmd => [
'pg_dump', '--no-sync', "--file=$tempdir/without_extension.sql",
],
},
- # plgsql in the list of extensions blocks the dump of extension
+ # plpgsql in the list of extensions blocks the dump of extension
# test_pg_dump. "public" is the schema used by the extension
# test_pg_dump, but none of its objects should be dumped.
without_extension_explicit_schema => {
],
},
- # plgsql in the list of extensions blocks the dump of extension
+ # plpgsql in the list of extensions blocks the dump of extension
# test_pg_dump, but not the dump of objects not dependent on the
# extension located on a schema maintained by the extension.
without_extension_internal_schema => {