Adjust sample auto-explain output to reflect query text inclusion.

This commit is contained in:
Andrew Dunstan 2010-02-20 22:24:29 +00:00
parent 05d8a561ff
commit f90a4c5df5
1 changed files with 13 additions and 12 deletions

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/auto-explain.sgml,v 1.6 2009/12/15 04:57:47 rhaas Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/auto-explain.sgml,v 1.7 2010/02/20 22:24:29 adunstan Exp $ -->
<sect1 id="auto-explain"> <sect1 id="auto-explain">
<title>auto_explain</title> <title>auto_explain</title>
@ -188,17 +188,18 @@ auto_explain.log_min_duration = '3s'
</para> </para>
<programlisting><![CDATA[ <programlisting><![CDATA[
LOG: duration: 0.986 ms plan: LOG: duration: 3.651 ms plan:
Aggregate (cost=14.90..14.91 rows=1 width=0) Query Text: SELECT count(*)
-> Hash Join (cost=3.91..14.70 rows=81 width=0) FROM pg_class, pg_index
Hash Cond: (pg_class.oid = pg_index.indrelid) WHERE oid = indrelid AND indisunique;
-> Seq Scan on pg_class (cost=0.00..8.27 rows=227 width=4) Aggregate (cost=16.79..16.80 rows=1 width=0) (actual time=3.626..3.627 rows=1 loops=1)
-> Hash (cost=2.90..2.90 rows=81 width=4) -> Hash Join (cost=4.17..16.55 rows=92 width=0) (actual time=3.349..3.594 rows=92 loops=1)
-> Seq Scan on pg_index (cost=0.00..2.90 rows=81 width=4) Hash Cond: (pg_class.oid = pg_index.indrelid)
Filter: indisunique -> Seq Scan on pg_class (cost=0.00..9.55 rows=255 width=4) (actual time=0.016..0.140 rows=255 loops=1)
STATEMENT: SELECT count(*) -> Hash (cost=3.02..3.02 rows=92 width=4) (actual time=3.238..3.238 rows=92 loops=1)
FROM pg_class, pg_index Buckets: 1024 Batches: 1 Memory Usage: 4kB
WHERE oid = indrelid AND indisunique; -> Seq Scan on pg_index (cost=0.00..3.02 rows=92 width=4) (actual time=0.008..3.187 rows=92 loops=1)
Filter: indisunique
]]> ]]>
</programlisting> </programlisting>
</sect2> </sect2>