Skip to content

Commit 6efdd41

Browse files
author
Neil Conway
committed
Fix two typos in the documentation for PREPARE.
1 parent fef0c83 commit 6efdd41

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/src/sgml/ref/prepare.sgml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/prepare.sgml,v 1.9 2003/12/01 22:07:58 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/prepare.sgml,v 1.10 2003/12/14 00:55:46 neilc Exp $
33
PostgreSQL documentation
44
-->
55

@@ -52,7 +52,7 @@ PREPARE <replaceable class="PARAMETER">plan_name</replaceable> [ (<replaceable c
5252
</para>
5353

5454
<para>
55-
Prepared statements are only for the duration of the current
55+
Prepared statements only last for the duration of the current
5656
database session. When the session ends, the prepared statement is
5757
forgotten, so it must be recreated before being used again. This
5858
also means that a single prepared statement cannot be used by
@@ -115,12 +115,12 @@ PREPARE <replaceable class="PARAMETER">plan_name</replaceable> [ (<replaceable c
115115
<title>Notes</title>
116116

117117
<para>
118-
In some situations, the query plan produced by for a prepared
119-
statement may be inferior to the plan produced if the statement
120-
were submitted and executed normally. This is because when the
121-
statement is planned and the planner attempts to determine the
122-
optimal query plan, the actual values of any parameters specified
123-
in the statement are
118+
In some situations, the query plan produced for a prepared
119+
statement will be inferior to the query plan that would have been
120+
chosen if the statement had been submitted and executed
121+
normally. This is because when the statement is planned and the
122+
planner attempts to determine the optimal query plan, the actual
123+
values of any parameters specified in the statement are
124124
unavailable. <productname>PostgreSQL</productname> collects
125125
statistics on the distribution of data in the table, and can use
126126
constant values in a statement to make guesses about the likely

0 commit comments

Comments
 (0)