aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-09-10 20:56:42 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-09-10 20:56:42 +0000
commit17c371fe82b7bed48cce4532d9337ccee9cdc009 (patch)
treefd496910b303b267ca62dbc0938c14726b1b796e
parent5e08e49637f68c767b45c0d4091dbb3a8e72b694 (diff)
downloadpostgresql-17c371fe82b7bed48cce4532d9337ccee9cdc009.tar.gz
postgresql-17c371fe82b7bed48cce4532d9337ccee9cdc009.zip
Remove unhelpful/misleading advice about how to use SPI_saveplan().
Per gripe from Jack Orenstein.
-rw-r--r--doc/src/sgml/spi.sgml7
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/src/sgml/spi.sgml b/doc/src/sgml/spi.sgml
index b19189632e6..b8c88555722 100644
--- a/doc/src/sgml/spi.sgml
+++ b/doc/src/sgml/spi.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.47 2006/08/27 23:47:57 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.48 2006/09/10 20:56:42 tgl Exp $ -->
<chapter id="spi">
<title>Server Programming Interface</title>
@@ -1614,10 +1614,7 @@ void * SPI_saveplan(void * <parameter>plan</parameter>)
by <function>SPI_finish</function> and by the transaction manager
and returns a pointer to the saved plan. This gives you the
ability to reuse prepared plans in the subsequent invocations of
- your procedure in the current session. You may save the pointer
- returned in a local variable. Always check if this pointer is
- <symbol>NULL</symbol> or not either when preparing a plan or using
- an already prepared plan in <function>SPI_execute_plan</function>.
+ your procedure in the current session.
</para>
</refsect1>