From bebe7c5600ad750fb52b86ecb083a3f623ba0a99 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 5 Jun 2005 03:16:42 +0000 Subject: Here's a patch to do the following: 1. Rename spi_return_next to return_next. 2. Add a new test for return_next. 3. Update the expected output. 4. Update the documentation. Abhijit Menon-Sen --- doc/src/sgml/plperl.sgml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/plperl.sgml b/doc/src/sgml/plperl.sgml index 0680c6106e8..c6fdb3bae2b 100644 --- a/doc/src/sgml/plperl.sgml +++ b/doc/src/sgml/plperl.sgml @@ -1,5 +1,5 @@ @@ -182,8 +182,11 @@ $$ LANGUAGE plperl; SELECT * FROM perl_set(); - Note that when you do this, Perl will have to build the entire array in - memory; therefore the technique does not scale to very large result sets. + When you do this, Perl will have to build the entire array in memory; + therefore the technique does not scale to very large result sets. You + can instead call return_next for each element of + the result set, passing it either a scalar or a reference to a hash, + as appropriate to your function's return type. -- cgit v1.2.3