mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-07 10:27:35 +08:00
PL/Python explicit subtransactions
Adds a context manager, obtainable by plpy.subtransaction(), to run a group of statements in a subtransaction. Jan Urbański, reviewed by Steve Singer, additional scribbling by me
This commit is contained in:
@ -43,9 +43,9 @@ contents.sort()
|
||||
return ", ".join(contents)
|
||||
$$ LANGUAGE plpythonu;
|
||||
select module_contents();
|
||||
module_contents
|
||||
---------------------------------------------------------------------------------------------------------------------------------------
|
||||
Error, Fatal, SPIError, debug, error, execute, fatal, info, log, notice, prepare, quote_ident, quote_literal, quote_nullable, warning
|
||||
module_contents
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Error, Fatal, SPIError, debug, error, execute, fatal, info, log, notice, prepare, quote_ident, quote_literal, quote_nullable, subtransaction, warning
|
||||
(1 row)
|
||||
|
||||
CREATE FUNCTION elog_test() RETURNS void
|
||||
|
||||
Reference in New Issue
Block a user