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
09b49a84
Commit
09b49a84
authored
Mar 01, 2011
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update discussion of EXPLAIN to reflect existence of ModifyTable nodes.
Back-patch to 9.0, since this was changed then.
parent
97c4ee94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 deletions
+21
-12
doc/src/sgml/perform.sgml
doc/src/sgml/perform.sgml
+21
-12
No files found.
doc/src/sgml/perform.sgml
View file @
09b49a84
...
@@ -430,18 +430,27 @@ WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2;
...
@@ -430,18 +430,27 @@ WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2;
<para>
<para>
The <literal>Total runtime</literal> shown by <command>EXPLAIN
The <literal>Total runtime</literal> shown by <command>EXPLAIN
ANALYZE</command> includes executor start-up and shut-down time, as well
ANALYZE</command> includes executor start-up and shut-down time, but not
as time spent processing the result rows. It does not include parsing,
parsing, rewriting, or planning time. For <command>INSERT</>,
rewriting, or planning time. For a <command>SELECT</> query, the total
<command>UPDATE</>, and <command>DELETE</> commands, the time spent
run time will normally be just a little larger than the total time
applying the table changes is charged to a top-level Insert, Update,
reported for the top-level plan node. For <command>INSERT</>,
or Delete plan node. (The plan nodes underneath this node represent
<command>UPDATE</>, and <command>DELETE</> commands, the total run time
the work of locating the old rows and/or computing the new ones.)
might be considerably larger, because it includes the time spent processing
Time spent firing triggers, if any, is charged to the Insert,
the result rows. For these commands, the time for the top plan node is
Update, or Delete node, and is also shown separately for each trigger.
essentially the time spent locating the old rows and/or computing
Note, however, that deferred triggers will not be fired until end of
the new ones, but it doesn't include the time spent applying the changes.
transaction and are thus not accounted for in the output of
Time spent firing triggers, if any, is also outside the top plan node,
<command>EXPLAIN ANALYZE</command>.
and is shown separately for each trigger.
</para>
<para>
There are two significant ways in which runtimes measured by
<command>EXPLAIN ANALYZE</command> can deviate from normal execution of
the same query. First, since no output rows are delivered to the client,
network transmission costs and I/O formatting costs are not included.
Second, the overhead added by <command>EXPLAIN ANALYZE</command> can be
significant, especially on machines with slow <function>gettimeofday()</>
kernel calls.
</para>
</para>
<para>
<para>
...
...
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