diff options
| author | Bruce Momjian <bruce@momjian.us> | 2006-05-30 11:40:21 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2006-05-30 11:40:21 +0000 |
| commit | fcc02c20fcc3887cb5c2314a39a789963bd118ff (patch) | |
| tree | 6e0555865c6d5776c117f26030dadb4b5de82789 /doc/src/sgml/plpgsql.sgml | |
| parent | 4c494889a6b2d9f6aa0ee6e0b880c2d1a59720a1 (diff) | |
Update PL documentation:
An article at WebProNews quoted from the PG docs as to the merits of
stored procedures. I have added a bit more material on their merits,
as well as making a few changes to improve the introductions to
PL/Perl and PL/Tcl.
Chris Browne
Diffstat (limited to 'doc/src/sgml/plpgsql.sgml')
| -rw-r--r-- | doc/src/sgml/plpgsql.sgml | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index 4f302a858e7..2fc998ee909 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.89 2006/05/28 03:03:17 adunstan Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.90 2006/05/30 11:40:21 momjian Exp $ --> <chapter id="plpgsql"> <title><application>PL/pgSQL</application> - <acronym>SQL</acronym> Procedural Language</title> @@ -155,21 +155,36 @@ $$ LANGUAGE plpgsql; <para> That means that your client application must send each query to - the database server, wait for it to be processed, receive the - results, do some computation, then send other queries to the - server. All this incurs interprocess communication and may also - incur network overhead if your client is on a different machine - than the database server. + the database server, wait for it to be processed, receive and + process the results, do some computation, then send further + queries to the server. All this incurs interprocess + communication and will also incur network overhead if your client + is on a different machine than the database server. </para> <para> - With <application>PL/pgSQL</application> you can group a block of computation and a - series of queries <emphasis>inside</emphasis> the - database server, thus having the power of a procedural - language and the ease of use of SQL, but saving lots of - time because you don't have the whole client/server - communication overhead. This can make for a - considerable performance increase. + With <application>PL/pgSQL</application> you can group a block of + computation and a series of queries <emphasis>inside</emphasis> + the database server, thus having the power of a procedural + language and the ease of use of SQL, but with considerable + savings because you don't have the whole client/server + communication overhead. + </para> + <itemizedlist> + + <listitem><para> Elimination of additional round trips between + client and server </para></listitem> + + <listitem><para> Intermediate results that the client does not + need do not need to be marshalled or transferred between server + and client </para></listitem> + + <listitem><para> There is no need for additional rounds of query + parsing </para></listitem> + + </itemizedlist> + <para> This can allow for a considerable performance increase as + compared to an application that does not use stored functions. </para> <para> |
