Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e339113

Browse files
committed
Update EXECUTE docs to mention tag matches prepared statement.
Update log_statement to more clearly state it doesn't filter based on the statement type of the prepared statement.
1 parent b00d50d commit e339113

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

doc/src/sgml/ref/execute.sgml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/execute.sgml,v 1.8 2004/01/26 17:26:30 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/execute.sgml,v 1.9 2004/04/22 04:18:41 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -45,6 +45,8 @@ EXECUTE <replaceable class="PARAMETER">plan_name</replaceable> [ (<replaceable c
4545
</para>
4646

4747
<para>
48+
The command tag returned by <command>EXECUTE</command>
49+
is that of the prepared statement, and not <literal>EXECUTE</>.
4850
For more information on the creation and usage of prepared statements,
4951
see <xref linkend="sql-prepare" endterm="sql-prepare-title">.
5052
</para>

doc/src/sgml/runtime.sgml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.261 2004/04/21 13:18:28 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.262 2004/04/22 04:18:37 momjian Exp $
33
-->
44

55
<Chapter Id="runtime">
@@ -2135,16 +2135,19 @@ SET ENABLE_SEQSCAN TO OFF;
21352135
<literal>UPDATE</>, <literal>DELETE</>, <literal>TRUNCATE</>,
21362136
and <literal>COPY FROM</>. <literal>PREPARE</> and
21372137
<literal>EXPLAIN ANALYZE</> statements are also considered for
2138-
appropriate commands. The default is <literal>none</>. Only
2139-
superusers can reduce the detail of this option if it has been
2140-
set by an administrator.
2138+
appropriate commands.
2139+
</para>
2140+
<para>
2141+
The default is <literal>none</>. Only superusers can reduce
2142+
the detail of this option if it has been set by an administrator.
21412143
</para>
21422144

21432145
<note>
21442146
<para>
2145-
When the <command>EXECUTE</command> statement is logged, only
2146-
the name of the prepared statement is recorded, not the
2147-
entire prepared statement.
2147+
The <command>EXECUTE</command> statement not considered a
2148+
<literal>ddl</> or <literal>mod</> statement. When it is logged,
2149+
only the name of the prepared statement is reported, not the
2150+
actual prepared statement.
21482151
</para>
21492152

21502153
<para>

0 commit comments

Comments
 (0)