 /* Stored procedure needed for fetching stat_statements data - needs pg_stat_statements extension enabled on the machine!
  NB! approx_free_percent is just an average. more exact way would be to calculate a weighed average in Go
 */
-insert into pgwatch2.metric(m_name, m_pg_version_from, m_sql, m_is_helper)
+insert into pgwatch2.metric(m_name, m_pg_version_from, m_sql, m_comment, m_is_helper)
 values (
 'get_table_bloat_approx',
 9.5,

'pgbouncer per db statistics',
false
);


COMMIT;
$sql$,
'for internal usage - when connecting user is marked as superuser then the daemon will automatically try to create the needed helpers on the monitored db',
true
);

