Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
93a57c3b
Commit
93a57c3b
authored
Feb 16, 2010
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify documentation on the behavior of unnamed bind queries.
parent
27cb626f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
doc/src/sgml/protocol.sgml
doc/src/sgml/protocol.sgml
+4
-4
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+2
-2
No files found.
doc/src/sgml/protocol.sgml
View file @
93a57c3b
<!-- $PostgreSQL: pgsql/doc/src/sgml/protocol.sgml,v 1.7
8 2010/02/03 09:47:19 heikki
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/protocol.sgml,v 1.7
9 2010/02/16 20:15:14 momjian
Exp $ -->
<chapter id="protocol">
<chapter id="protocol">
<title>Frontend/Backend Protocol</title>
<title>Frontend/Backend Protocol</title>
...
@@ -737,9 +737,9 @@
...
@@ -737,9 +737,9 @@
<para>
<para>
The unnamed prepared statement is likewise planned during Parse processing
The unnamed prepared statement is likewise planned during Parse processing
if the Parse message defines no parameters. But if there are parameters,
if the Parse message defines no parameters. But if there are parameters,
query planning occurs
during Bind processing instea
d. This allows the
query planning occurs
every time Bind parameters are supplie
d. This allows the
planner to make use of the actual values of the parameters provided
in
planner to make use of the actual values of the parameters provided
by
the Bind message when planning the query
.
each Bind message, rather than use generic estimates
.
</para>
</para>
<note>
<note>
...
...
src/backend/tcop/postgres.c
View file @
93a57c3b
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.58
8 2010/02/13 01:32:19 sriggs
Exp $
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.58
9 2010/02/16 20:15:14 momjian
Exp $
*
*
* NOTES
* NOTES
* this is the "main" module of the postgres backend and
* this is the "main" module of the postgres backend and
...
@@ -1469,7 +1469,7 @@ exec_bind_message(StringInfo input_message)
...
@@ -1469,7 +1469,7 @@ exec_bind_message(StringInfo input_message)
}
}
else
else
{
{
/*
special-case the unnamed statement
*/
/*
Unnamed statements are re-prepared for every bind
*/
psrc
=
unnamed_stmt_psrc
;
psrc
=
unnamed_stmt_psrc
;
if
(
!
psrc
)
if
(
!
psrc
)
ereport
(
ERROR
,
ereport
(
ERROR
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment