2011-03-10 15:19:34 +00:00
% layout 'default';
% my $title = 'New explain';
% title $title;
<h1><%= $title =%></h1>
2011-05-04 07:12:41 +00:00
% if ( stash( 'message' ) ) {
2011-06-14 14:33:05 +02:00
<div class="message">
2011-05-04 07:12:41 +00:00
<p class="message"><%= stash( 'message' ) =%></p>
2011-06-14 14:33:05 +02:00
<p class="hint">You might want to <a href="<%= url_for 'contact' %>">contact</a> me if you think that the problem is on <a href="http://explain.depesz.com/">explain.depesz.com</a> side.</p>
</div>
2011-05-04 07:12:41 +00:00
% }
2013-03-30 20:18:27 +01:00
% if ( flash( 'message' ) ) {
<div class="message">
<p class="message"><%= flash( 'message' ) =%></p>
</div>
% }
2011-03-11 06:19:50 +00:00
<form id="new-explain" method="post" action="<%= url_for 'current' %>">
<div class="fe fe-first fe_plan">
2011-06-28 15:25:14 +02:00
<label for="title">Optional title for plan:</label>
<input id="title" name="title" class="auto-hint" title="Optional title"/>
2011-03-15 05:48:41 +00:00
<label for="plan">Paste your explain/explain analyze here:</label>
2011-06-14 14:04:11 +02:00
<textarea id="plan" name="plan" class="auto-hint" title="For example:
QUERY PLAN
---------------------------------------------------------------------------------------------------------------------------
Sort (cost=146.63..148.65 rows=808 width=138) (actual time=55.009..55.012 rows=71 loops=1)
Sort Key: n.nspname, p.proname, (pg_get_function_arguments(p.oid))
Sort Method: quicksort Memory: 43kB
-> Hash Join (cost=1.14..107.61 rows=808 width=138) (actual time=42.495..54.854 rows=71 loops=1)
Hash Cond: (p.pronamespace = n.oid)
-> Seq Scan on pg_proc p (cost=0.00..89.30 rows=808 width=78) (actual time=0.052..53.465 rows=2402 loops=1)
Filter: pg_function_is_visible(oid)
-> Hash (cost=1.09..1.09 rows=4 width=68) (actual time=0.011..0.011 rows=4 loops=1)
Buckets: 1024 Batches: 1 Memory Usage: 1kB
-> Seq Scan on pg_namespace n (cost=0.00..1.09 rows=4 width=68) (actual time=0.005..0.007 rows=4 loops=1)
Filter: ((nspname <> 'pg_catalog'::name) AND (nspname <> 'information_schema'::name))"></textarea>
2011-03-10 15:19:34 +00:00
</div>
2011-03-11 06:19:50 +00:00
<div class="fe fe_is_public">
<label for="is_public">I want this plan to be visible on <a href="<%= url_for 'history' %>" title="link to: history">history</a> page.</label>
<input type="checkbox" class="checkbox" id="is_public" name="is_public" value="1" checked="checked" />
2011-03-10 15:19:34 +00:00
</div>
2011-06-11 04:44:41 +02:00
<div class="fe fe_is_anon">
2011-06-20 21:41:13 +02:00
<label for="is_anon">I want this plan to be <a href="http://www.depesz.com/index.php/2011/06/11/explain-depesz-com-new-feature-and-some-new-stats/" title="link to: anonymization description">anonymized</a> before saving.</label>
2011-06-11 04:44:41 +02:00
<input type="checkbox" class="checkbox" id="is_anon" name="is_anon" value="1"/>
</div>
2011-03-11 06:19:50 +00:00
<div class="fe fe-last fe-buttons">
2011-03-10 15:19:34 +00:00
<button type="submit" name="submit_plan" id="submit_plan"><span>Submit</span></button>
</div>
</form>