Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
bdb8b394
Commit
bdb8b394
authored
Oct 15, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This patch clarifies the usage of references in PL/Perl :)
David Fetter
parent
a1ce88a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
doc/src/sgml/plperl.sgml
doc/src/sgml/plperl.sgml
+8
-3
No files found.
doc/src/sgml/plperl.sgml
View file @
bdb8b394
<!--
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.2
8 2004/09/20 22:48:25 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.2
9 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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment