mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-07 22:37:31 +08:00
plpython: Add SPI cursor support
Add a function plpy.cursor that is similar to plpy.execute but uses an SPI cursor to avoid fetching the entire result set into memory. Jan Urbański, reviewed by Steve Singer
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, spiexceptions, subtransaction, warning
|
||||
module_contents
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Error, Fatal, SPIError, cursor, debug, error, execute, fatal, info, log, notice, prepare, quote_ident, quote_literal, quote_nullable, spiexceptions, subtransaction, warning
|
||||
(1 row)
|
||||
|
||||
CREATE FUNCTION elog_test() RETURNS void
|
||||
|
||||
Reference in New Issue
Block a user