From: Tom Lane Date: Fri, 10 Apr 2009 17:56:21 +0000 (+0000) Subject: Add cross-references from the DECLARE and FETCH reference pages to X-Git-Tag: REL8_4_BETA2~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=843c6546eb6f2e09f3543a24f9c875b2f6773ff0;p=postgresql Add cross-references from the DECLARE and FETCH reference pages to the plpgsql documentation about cursors. Per a suggestion from Matthew Wakeling. --- diff --git a/doc/src/sgml/ref/declare.sgml b/doc/src/sgml/ref/declare.sgml index 373ef39be7..641971149a 100644 --- a/doc/src/sgml/ref/declare.sgml +++ b/doc/src/sgml/ref/declare.sgml @@ -1,5 +1,5 @@ @@ -41,6 +41,15 @@ DECLARE name [ BINARY ] [ INSENSITI After the cursor is created, rows are fetched from it using . + + + + This page describes usage of cursors at the SQL command level. + If you are trying to use cursors inside a PL/pgSQL + function, the rules are different — + see . + + diff --git a/doc/src/sgml/ref/fetch.sgml b/doc/src/sgml/ref/fetch.sgml index 0a9e6342e0..74ff297bb2 100644 --- a/doc/src/sgml/ref/fetch.sgml +++ b/doc/src/sgml/ref/fetch.sgml @@ -1,5 +1,5 @@ @@ -92,6 +92,15 @@ where direction can be empty or one 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. + + + + This page describes usage of cursors at the SQL command level. + If you are trying to use cursors inside a PL/pgSQL + function, the rules are different — + see . + +