From 351c52139889d2d22bf18ef8b12e6607f4c2e1de Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 10 Apr 2009 17:56:21 +0000 Subject: [PATCH] Add cross-references from the DECLARE and FETCH reference pages to the plpgsql documentation about cursors. Per a suggestion from Matthew Wakeling. --- doc/src/sgml/ref/declare.sgml | 9 +++++++++ doc/src/sgml/ref/fetch.sgml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/doc/src/sgml/ref/declare.sgml b/doc/src/sgml/ref/declare.sgml index 481aa4316a..96e1f7d272 100644 --- a/doc/src/sgml/ref/declare.sgml +++ b/doc/src/sgml/ref/declare.sgml @@ -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 7e69f81a97..ac392cbe88 100644 --- a/doc/src/sgml/ref/fetch.sgml +++ b/doc/src/sgml/ref/fetch.sgml @@ -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 . + + -- 2.39.5