fix-redundant-regex-patterns.patch
text/x-diff
Filename: fix-redundant-regex-patterns.patch
Type: text/x-diff
Part: 0
Patch
Format: unified
| File | + | − |
|---|---|---|
| src/bin/scripts/t/102_vacuumdb_stages.pl | 0 | 0 |
diff --git a/src/bin/scripts/t/102_vacuumdb_stages.pl b/src/bin/scripts/t/102_vacuumdb_stages.pl
index 3929441..17a7fc7 100644
*** a/src/bin/scripts/t/102_vacuumdb_stages.pl
--- b/src/bin/scripts/t/102_vacuumdb_stages.pl
*************** $node->start;
*** 10,35 ****
$node->issues_sql_like(
[ 'vacuumdb', '--analyze-in-stages', 'postgres' ],
! qr/.*statement:\ SET\ default_statistics_target=1;\ SET\ vacuum_cost_delay=0;
! .*statement:\ ANALYZE.*
.*statement:\ SET\ default_statistics_target=10;\ RESET\ vacuum_cost_delay;
! .*statement:\ ANALYZE.*
.*statement:\ RESET\ default_statistics_target;
.*statement:\ ANALYZE/sx,
'analyze three times');
$node->issues_sql_like(
[ 'vacuumdb', '--analyze-in-stages', '--all' ],
! qr/.*statement:\ SET\ default_statistics_target=1;\ SET\ vacuum_cost_delay=0;
! .*statement:\ ANALYZE.*
.*statement:\ SET\ default_statistics_target=1;\ SET\ vacuum_cost_delay=0;
! .*statement:\ ANALYZE.*
.*statement:\ SET\ default_statistics_target=10;\ RESET\ vacuum_cost_delay;
! .*statement:\ ANALYZE.*
.*statement:\ SET\ default_statistics_target=10;\ RESET\ vacuum_cost_delay;
! .*statement:\ ANALYZE.*
.*statement:\ RESET\ default_statistics_target;
! .*statement:\ ANALYZE.*
.*statement:\ RESET\ default_statistics_target;
.*statement:\ ANALYZE/sx,
'analyze more than one database in stages');
--- 10,35 ----
$node->issues_sql_like(
[ 'vacuumdb', '--analyze-in-stages', 'postgres' ],
! qr/statement:\ SET\ default_statistics_target=1;\ SET\ vacuum_cost_delay=0;
! .*statement:\ ANALYZE
.*statement:\ SET\ default_statistics_target=10;\ RESET\ vacuum_cost_delay;
! .*statement:\ ANALYZE
.*statement:\ RESET\ default_statistics_target;
.*statement:\ ANALYZE/sx,
'analyze three times');
$node->issues_sql_like(
[ 'vacuumdb', '--analyze-in-stages', '--all' ],
! qr/statement:\ SET\ default_statistics_target=1;\ SET\ vacuum_cost_delay=0;
! .*statement:\ ANALYZE
.*statement:\ SET\ default_statistics_target=1;\ SET\ vacuum_cost_delay=0;
! .*statement:\ ANALYZE
.*statement:\ SET\ default_statistics_target=10;\ RESET\ vacuum_cost_delay;
! .*statement:\ ANALYZE
.*statement:\ SET\ default_statistics_target=10;\ RESET\ vacuum_cost_delay;
! .*statement:\ ANALYZE
.*statement:\ RESET\ default_statistics_target;
! .*statement:\ ANALYZE
.*statement:\ RESET\ default_statistics_target;
.*statement:\ ANALYZE/sx,
'analyze more than one database in stages');