~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to doc/src/sgml/html/plperl.html

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<HTML
 
3
><HEAD
 
4
><TITLE
 
5
>PL/Perl - Perl Procedural Language</TITLE
 
6
><META
 
7
NAME="GENERATOR"
 
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
 
9
REV="MADE"
 
10
HREF="mailto:pgsql-docs@postgresql.org"><LINK
 
11
REL="HOME"
 
12
TITLE="PostgreSQL 9.1beta1 Documentation"
 
13
HREF="index.html"><LINK
 
14
REL="UP"
 
15
TITLE="Server Programming"
 
16
HREF="server-programming.html"><LINK
 
17
REL="PREVIOUS"
 
18
TITLE="Tcl Procedure Names"
 
19
HREF="pltcl-procnames.html"><LINK
 
20
REL="NEXT"
 
21
TITLE="PL/Perl Functions and Arguments"
 
22
HREF="plperl-funcs.html"><LINK
 
23
REL="STYLESHEET"
 
24
TYPE="text/css"
 
25
HREF="stylesheet.css"><META
 
26
HTTP-EQUIV="Content-Type"
 
27
CONTENT="text/html; charset=ISO-8859-1"><META
 
28
NAME="creation"
 
29
CONTENT="2011-04-27T21:20:33"></HEAD
 
30
><BODY
 
31
CLASS="CHAPTER"
 
32
><DIV
 
33
CLASS="NAVHEADER"
 
34
><TABLE
 
35
SUMMARY="Header navigation table"
 
36
WIDTH="100%"
 
37
BORDER="0"
 
38
CELLPADDING="0"
 
39
CELLSPACING="0"
 
40
><TR
 
41
><TH
 
42
COLSPAN="5"
 
43
ALIGN="center"
 
44
VALIGN="bottom"
 
45
><A
 
46
HREF="index.html"
 
47
>PostgreSQL 9.1beta1 Documentation</A
 
48
></TH
 
49
></TR
 
50
><TR
 
51
><TD
 
52
WIDTH="10%"
 
53
ALIGN="left"
 
54
VALIGN="top"
 
55
><A
 
56
TITLE="Tcl Procedure Names"
 
57
HREF="pltcl-procnames.html"
 
58
ACCESSKEY="P"
 
59
>Prev</A
 
60
></TD
 
61
><TD
 
62
WIDTH="10%"
 
63
ALIGN="left"
 
64
VALIGN="top"
 
65
><A
 
66
TITLE="PL/Tcl - Tcl Procedural Language"
 
67
HREF="pltcl.html"
 
68
>Fast Backward</A
 
69
></TD
 
70
><TD
 
71
WIDTH="60%"
 
72
ALIGN="center"
 
73
VALIGN="bottom"
 
74
></TD
 
75
><TD
 
76
WIDTH="10%"
 
77
ALIGN="right"
 
78
VALIGN="top"
 
79
><A
 
80
TITLE="PL/Python - Python Procedural Language"
 
81
HREF="plpython.html"
 
82
>Fast Forward</A
 
83
></TD
 
84
><TD
 
85
WIDTH="10%"
 
86
ALIGN="right"
 
87
VALIGN="top"
 
88
><A
 
89
TITLE="PL/Perl Functions and Arguments"
 
90
HREF="plperl-funcs.html"
 
91
ACCESSKEY="N"
 
92
>Next</A
 
93
></TD
 
94
></TR
 
95
></TABLE
 
96
><HR
 
97
ALIGN="LEFT"
 
98
WIDTH="100%"></DIV
 
99
><DIV
 
100
CLASS="CHAPTER"
 
101
><H1
 
102
><A
 
103
NAME="PLPERL"
 
104
></A
 
105
>Chapter 41. PL/Perl - Perl Procedural Language</H1
 
106
><DIV
 
107
CLASS="TOC"
 
108
><DL
 
109
><DT
 
110
><B
 
111
>Table of Contents</B
 
112
></DT
 
113
><DT
 
114
>41.1. <A
 
115
HREF="plperl-funcs.html"
 
116
>PL/Perl Functions and Arguments</A
 
117
></DT
 
118
><DT
 
119
>41.2. <A
 
120
HREF="plperl-data.html"
 
121
>Data Values in PL/Perl</A
 
122
></DT
 
123
><DT
 
124
>41.3. <A
 
125
HREF="plperl-builtins.html"
 
126
>Built-in Functions</A
 
127
></DT
 
128
><DD
 
129
><DL
 
130
><DT
 
131
>41.3.1. <A
 
132
HREF="plperl-builtins.html#PLPERL-DATABASE"
 
133
>Database Access from PL/Perl</A
 
134
></DT
 
135
><DT
 
136
>41.3.2. <A
 
137
HREF="plperl-builtins.html#PLPERL-UTILITY-FUNCTIONS"
 
138
>Utility Functions in PL/Perl</A
 
139
></DT
 
140
></DL
 
141
></DD
 
142
><DT
 
143
>41.4. <A
 
144
HREF="plperl-global.html"
 
145
>Global Values in PL/Perl</A
 
146
></DT
 
147
><DT
 
148
>41.5. <A
 
149
HREF="plperl-trusted.html"
 
150
>Trusted and Untrusted PL/Perl</A
 
151
></DT
 
152
><DT
 
153
>41.6. <A
 
154
HREF="plperl-triggers.html"
 
155
>PL/Perl Triggers</A
 
156
></DT
 
157
><DT
 
158
>41.7. <A
 
159
HREF="plperl-under-the-hood.html"
 
160
>PL/Perl Under the Hood</A
 
161
></DT
 
162
><DD
 
163
><DL
 
164
><DT
 
165
>41.7.1. <A
 
166
HREF="plperl-under-the-hood.html#PLPERL-CONFIG"
 
167
>Configuration</A
 
168
></DT
 
169
><DT
 
170
>41.7.2. <A
 
171
HREF="plperl-under-the-hood.html#PLPERL-MISSING"
 
172
>Limitations and Missing Features</A
 
173
></DT
 
174
></DL
 
175
></DD
 
176
></DL
 
177
></DIV
 
178
><P
 
179
>   PL/Perl is a loadable procedural language that enables you to write
 
180
   <SPAN
 
181
CLASS="PRODUCTNAME"
 
182
>PostgreSQL</SPAN
 
183
> functions in the
 
184
   <A
 
185
HREF="http://www.perl.org"
 
186
TARGET="_top"
 
187
>Perl programming language</A
 
188
>.
 
189
  </P
 
190
><P
 
191
>   The main advantage to using PL/Perl is that this allows use,
 
192
   within stored functions, of the manyfold <SPAN
 
193
CLASS="QUOTE"
 
194
>"string
 
195
   munging"</SPAN
 
196
> operators and functions available for Perl.  Parsing
 
197
   complex strings might be easier using Perl than it is with the
 
198
   string functions and control structures provided in PL/pgSQL.
 
199
  </P
 
200
><P
 
201
>   To install PL/Perl in a particular database, use
 
202
   <TT
 
203
CLASS="LITERAL"
 
204
>CREATE EXTENSION plperl</TT
 
205
>, or from the shell command line use
 
206
   <TT
 
207
CLASS="LITERAL"
 
208
>createlang plperl <TT
 
209
CLASS="REPLACEABLE"
 
210
><I
 
211
>dbname</I
 
212
></TT
 
213
></TT
 
214
>.
 
215
  </P
 
216
><DIV
 
217
CLASS="TIP"
 
218
><BLOCKQUOTE
 
219
CLASS="TIP"
 
220
><P
 
221
><B
 
222
>Tip: </B
 
223
>    If a language is installed into <TT
 
224
CLASS="LITERAL"
 
225
>template1</TT
 
226
>, all subsequently
 
227
    created databases will have the language installed automatically.
 
228
   </P
 
229
></BLOCKQUOTE
 
230
></DIV
 
231
><DIV
 
232
CLASS="NOTE"
 
233
><BLOCKQUOTE
 
234
CLASS="NOTE"
 
235
><P
 
236
><B
 
237
>Note: </B
 
238
>    Users of source packages must specially enable the build of
 
239
    PL/Perl during the installation process.  (Refer to <A
 
240
HREF="installation.html"
 
241
>Chapter 15</A
 
242
> for more information.)  Users of
 
243
    binary packages might find PL/Perl in a separate subpackage.
 
244
   </P
 
245
></BLOCKQUOTE
 
246
></DIV
 
247
></DIV
 
248
><DIV
 
249
CLASS="NAVFOOTER"
 
250
><HR
 
251
ALIGN="LEFT"
 
252
WIDTH="100%"><TABLE
 
253
SUMMARY="Footer navigation table"
 
254
WIDTH="100%"
 
255
BORDER="0"
 
256
CELLPADDING="0"
 
257
CELLSPACING="0"
 
258
><TR
 
259
><TD
 
260
WIDTH="33%"
 
261
ALIGN="left"
 
262
VALIGN="top"
 
263
><A
 
264
HREF="pltcl-procnames.html"
 
265
ACCESSKEY="P"
 
266
>Prev</A
 
267
></TD
 
268
><TD
 
269
WIDTH="34%"
 
270
ALIGN="center"
 
271
VALIGN="top"
 
272
><A
 
273
HREF="index.html"
 
274
ACCESSKEY="H"
 
275
>Home</A
 
276
></TD
 
277
><TD
 
278
WIDTH="33%"
 
279
ALIGN="right"
 
280
VALIGN="top"
 
281
><A
 
282
HREF="plperl-funcs.html"
 
283
ACCESSKEY="N"
 
284
>Next</A
 
285
></TD
 
286
></TR
 
287
><TR
 
288
><TD
 
289
WIDTH="33%"
 
290
ALIGN="left"
 
291
VALIGN="top"
 
292
>Tcl Procedure Names</TD
 
293
><TD
 
294
WIDTH="34%"
 
295
ALIGN="center"
 
296
VALIGN="top"
 
297
><A
 
298
HREF="server-programming.html"
 
299
ACCESSKEY="U"
 
300
>Up</A
 
301
></TD
 
302
><TD
 
303
WIDTH="33%"
 
304
ALIGN="right"
 
305
VALIGN="top"
 
306
>PL/Perl Functions and Arguments</TD
 
307
></TR
 
308
></TABLE
 
309
></DIV
 
310
></BODY
 
311
></HTML
 
312
>
 
 
b'\\ No newline at end of file'