|
36 | 36 | my $numcalls = $node->safe_psql('postgres',
|
37 | 37 | "SELECT injection_points_stats_numcalls('stats-notice');");
|
38 | 38 | is($numcalls, '2', 'number of stats calls');
|
| 39 | +my $entrycount = |
| 40 | + $node->safe_psql('postgres', "SELECT injection_points_stats_count();"); |
| 41 | +is($entrycount, '1', 'number of entries'); |
39 | 42 | my $fixedstats = $node->safe_psql('postgres',
|
40 | 43 | "SELECT * FROM injection_points_stats_fixed();");
|
41 | 44 | is($fixedstats, '1|0|2|0|0', 'fixed stats after some calls');
|
|
55 | 58 | $numcalls = $node->safe_psql('postgres',
|
56 | 59 | "SELECT injection_points_stats_numcalls('stats-notice');");
|
57 | 60 | is($numcalls, '3', 'number of stats after clean restart');
|
| 61 | +$entrycount = |
| 62 | + $node->safe_psql('postgres', "SELECT injection_points_stats_count();"); |
| 63 | +is($entrycount, '1', 'number of entries after clean restart'); |
58 | 64 | $fixedstats = $node->safe_psql('postgres',
|
59 | 65 | "SELECT * FROM injection_points_stats_fixed();");
|
60 | 66 | is($fixedstats, '1|0|2|1|1', 'fixed stats after clean restart');
|
|
65 | 71 | $numcalls = $node->safe_psql('postgres',
|
66 | 72 | "SELECT injection_points_stats_numcalls('stats-notice');");
|
67 | 73 | is($numcalls, '', 'number of stats after crash');
|
| 74 | +$entrycount = |
| 75 | + $node->safe_psql('postgres', "SELECT injection_points_stats_count();"); |
| 76 | +is($entrycount, '0', 'number of entries after crash'); |
68 | 77 | $fixedstats = $node->safe_psql('postgres',
|
69 | 78 | "SELECT * FROM injection_points_stats_fixed();");
|
70 | 79 | is($fixedstats, '0|0|0|0|0', 'fixed stats after crash');
|
|
81 | 90 | $numcalls = $node->safe_psql('postgres',
|
82 | 91 | "SELECT injection_points_stats_numcalls('stats-notice');");
|
83 | 92 | is($numcalls, '', 'no stats after drop via SQL function');
|
| 93 | +$entrycount = |
| 94 | + $node->safe_psql('postgres', "SELECT injection_points_stats_count();"); |
| 95 | +is($entrycount, '0', 'number of entries after drop via SQL function'); |
84 | 96 |
|
85 | 97 | # Stop the server, disable the module, then restart. The server
|
86 | 98 | # should be able to come up.
|
|
0 commit comments