summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian2004-10-15 16:51:48 +0000
committerBruce Momjian2004-10-15 16:51:48 +0000
commitbdb8b394c433c72c139ddd0c69cd3e8836f3d0bb (patch)
tree4ff7f56c79bd635ea816abd54540398821a72d69 /doc/src
parenta1ce88a59c05ac63c92f36c219f714e5552e9ba3 (diff)
This patch clarifies the usage of references in PL/Perl :)
David Fetter
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/plperl.sgml11
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/src/sgml/plperl.sgml b/doc/src/sgml/plperl.sgml
index 342da3ba5cf..7d76b4fc032 100644
--- a/doc/src/sgml/plperl.sgml
+++ b/doc/src/sgml/plperl.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.28 2004/09/20 22:48:25 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.29 2004/10/15 16:51:48 momjian Exp $
-->
<chapter id="plperl">
@@ -260,7 +260,9 @@ composite types.
</para>
<para>
- Here is an example of a PL/Perl function returning a rowset of a row type:
+ Here is an example of a PL/Perl function returning a rowset of a
+ row type. Note that a composite type is always represented as a
+ hash reference.
<programlisting>
CREATE TABLE test (
i int,
@@ -305,7 +307,10 @@ $$ LANGUAGE plperl;
</para>
<para>
- Here is an example of a PL/Perl function returning a rowset of a composite type.
+ Here is an example of a PL/Perl function returning a rowset of a
+composite type. As a rowset is always a reference to an array
+and a composite type is always a reference to a hash, a rowset of a
+composite type is a reference to an array of hash references.
<programlisting>
CREATE TYPE testsetperl AS (f1 integer, f2 text, f3 text);