1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2024-11-24 08:42:27 +02:00

More explicit help for how to get explain plan

Suggestion by Eugen Konkov.
This commit is contained in:
Hubert depesz Lubaczewski 2021-05-30 11:59:37 +02:00
parent 2a143a88f3
commit c27474acdb
2 changed files with 11 additions and 1 deletions

View File

@ -186,3 +186,12 @@ div.plea { float: right; color: #666; }
#contactWait { border: 2px solid #00f; padding: 0.5em; text-align: center; background: #006; margin: 1em; padding: 1em;}
#contactWait p { font-weight: bold; font-size: 2em; color: #ccc; padding: 0; margin: 0; margin-bottom: 1em; }
#contactWait p.hint { font-weight: normal; font-size: 1.5em; margin-bottom: 0em; }
label > code {
margin: 5px;
margin-bottom: 0px;
padding: 3px 10px;
border: 1px solid #888;
background: #ddd;
display: inline-block;
}

View File

@ -36,8 +36,9 @@
<input id="title" name="title" class="auto-hint" title="Optional title"/>
% }
<label for="plan">Paste your explain/explain analyze here:</label>
<label for="plan">Paste output of <code><a href="https://www.postgresql.org/docs/current/sql-explain.html">EXPLAIN ANALYZE</a> <em>your query</em>;</code> here:</label>
<textarea id="plan" name="plan" class="auto-hint" title="For example:
=> EXPLAIN ANALYZE SELECT * FROM some_view WHERE nspname not in ('pg_catalog', 'information_schema') order by 1, 2, 3;
QUERY PLAN
---------------------------------------------------------------------------------------------------------------------------
Sort (cost=146.63..148.65 rows=808 width=138) (actual time=55.009..55.012 rows=71 loops=1)