Also fix query_plans_by_table
authorBernd Zeimetz <bernd@bzed.de>
Fri, 2 Sep 2016 12:05:58 +0000 (14:05 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Mon, 5 Sep 2016 06:59:16 +0000 (08:59 +0200)
#1905 happens here obviously, too.

src/postgresql_default.conf

index 7ec971a..0aac41e 100644 (file)
 
 <Query query_plans_by_table>
        Statement "SELECT schemaname, relname, \
-                       seq_scan AS seq, \
-                       seq_tup_read AS seq_tup_read, \
-                       idx_scan AS idx, \
-                       idx_tup_fetch AS idx_tup_fetch \
+                       coalesce(seq_scan, 0) AS seq, \
+                       coalesce(seq_tup_read, 0) AS seq_tup_read, \
+                       coalesce(idx_scan, 0) AS idx, \
+                       coalesce(idx_tup_fetch, 0) AS idx_tup_fetch \
                FROM pg_stat_user_tables;"
 
        <Result>