File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/protocol.sgml,v 1.78 2010/02/03 09:47:19 heikki Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/protocol.sgml,v 1.79 2010/02/16 20:15:14 momjian Exp $ -->
2
2
3
3
<chapter id="protocol">
4
4
<title>Frontend/Backend Protocol</title>
737
737
<para>
738
738
The unnamed prepared statement is likewise planned during Parse processing
739
739
if the Parse message defines no parameters. But if there are parameters,
740
- query planning occurs during Bind processing instead . This allows the
741
- planner to make use of the actual values of the parameters provided in
742
- the Bind message when planning the query .
740
+ query planning occurs every time Bind parameters are supplied . This allows the
741
+ planner to make use of the actual values of the parameters provided by
742
+ each Bind message, rather than use generic estimates .
743
743
</para>
744
744
745
745
<note>
Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.588 2010/02/13 01:32:19 sriggs Exp $
11
+ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.589 2010/02/16 20:15:14 momjian Exp $
12
12
*
13
13
* NOTES
14
14
* this is the "main" module of the postgres backend and
@@ -1469,7 +1469,7 @@ exec_bind_message(StringInfo input_message)
1469
1469
}
1470
1470
else
1471
1471
{
1472
- /* special-case the unnamed statement */
1472
+ /* Unnamed statements are re-prepared for every bind */
1473
1473
psrc = unnamed_stmt_psrc ;
1474
1474
if (!psrc )
1475
1475
ereport (ERROR ,
You can’t perform that action at this time.
0 commit comments