Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 843c654

Browse files
committed
Add cross-references from the DECLARE and FETCH reference pages to
the plpgsql documentation about cursors. Per a suggestion from Matthew Wakeling.
1 parent 5178114 commit 843c654

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

doc/src/sgml/ref/declare.sgml

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/declare.sgml,v 1.45 2008/11/16 17:34:28 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/declare.sgml,v 1.46 2009/04/10 17:56:21 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -41,6 +41,15 @@ DECLARE <replaceable class="parameter">name</replaceable> [ BINARY ] [ INSENSITI
4141
After the cursor is created, rows are fetched from it using
4242
<xref linkend="sql-fetch" endterm="sql-fetch-title">.
4343
</para>
44+
45+
<note>
46+
<para>
47+
This page describes usage of cursors at the SQL command level.
48+
If you are trying to use cursors inside a <application>PL/pgSQL</>
49+
function, the rules are different &mdash;
50+
see <xref linkend="plpgsql-cursors">.
51+
</para>
52+
</note>
4453
</refsect1>
4554

4655
<refsect1>

doc/src/sgml/ref/fetch.sgml

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/fetch.sgml,v 1.42 2008/11/14 10:22:47 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/fetch.sgml,v 1.43 2009/04/10 17:56:21 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -92,6 +92,15 @@ where <replaceable class="PARAMETER">direction</replaceable> can be empty or one
9292
row. This will succeed unless the cursor is positioned before the
9393
first row or after the last row; in which case, no row is returned.
9494
</para>
95+
96+
<note>
97+
<para>
98+
This page describes usage of cursors at the SQL command level.
99+
If you are trying to use cursors inside a <application>PL/pgSQL</>
100+
function, the rules are different &mdash;
101+
see <xref linkend="plpgsql-cursors">.
102+
</para>
103+
</note>
95104
</refsect1>
96105

97106
<refsect1>

0 commit comments

Comments
 (0)