the plpgsql documentation about cursors. Per a suggestion from
Matthew Wakeling.
After the cursor is created, rows are fetched from it using
<xref linkend="sql-fetch" endterm="sql-fetch-title">.
</para>
+
+ <note>
+ <para>
+ This page describes usage of cursors at the SQL command level.
+ If you are trying to use cursors inside a <application>PL/pgSQL</>
+ function, the rules are different —
+ see <xref linkend="plpgsql-cursors">.
+ </para>
+ </note>
</refsect1>
<refsect1>
row. This will succeed unless the cursor is positioned before the
first row or after the last row; in which case, no row is returned.
</para>
+
+ <note>
+ <para>
+ This page describes usage of cursors at the SQL command level.
+ If you are trying to use cursors inside a <application>PL/pgSQL</>
+ function, the rules are different —
+ see <xref linkend="plpgsql-cursors">.
+ </para>
+ </note>
</refsect1>
<refsect1>