*** pgsql/doc/src/sgml/plpgsql.sgml 2009/02/04 21:30:41 1.137 --- pgsql/doc/src/sgml/plpgsql.sgml 2009/02/05 15:25:49 1.138 *************** *** 1,4 **** ! <application>PL/pgSQL</application> - <acronym>SQL</acronym> Procedural Language --- 1,4 ---- ! <application>PL/pgSQL</application> - <acronym>SQL</acronym> Procedural Language *************** GET DIAGNOSTICS integer_var = ROW_COUNT; *** 1356,1361 **** --- 1356,1369 ---- execution of other statements within the loop body. + + + A RETURN QUERY and RETURN QUERY + EXECUTE statements set FOUND + true if the query returns at least one row, false if no row + is returned. + + FOUND is a local variable within each