app/views/pg_hero/home/index_bloat.html.erb in pghero-2.0.2 vs app/views/pg_hero/home/index_bloat.html.erb in pghero-2.0.3

- old
+ new

@@ -32,14 +32,17 @@ <tbody> <% @index_bloat.each do |index| %> <tr> <td> <span style="word-break: break-all;"><%= index[:index] %></span> + <% if index[:primary] %> + <span class="primary-key">PRIMARY</span> + <% end %> </td> <td><%= PgHero.pretty_size(index[:bloat_bytes]) %></td> <td><%= PgHero.pretty_size(index[:index_bytes]) %></td> </tr> - <% if @show_sql %> + <% if @show_sql && !index[:primary] %> <tr> <td colspan="3" style="border-top: none; padding: 0;"> <% new_index = "new_#{index[:index]}".first(63) %> <pre><code><%= index[:definition].sub(" INDEX ", " INDEX CONCURRENTLY \n ").sub(index[:index], new_index) %>;