2
2
use strict;
3
3
use warnings;
4
4
5
- use Cwd qw( abs_path getcwd ) ;
5
+ use Cwd qw( abs_path) ;
6
6
use File::Basename qw( dirname) ;
7
7
use File::Compare;
8
8
@@ -23,7 +23,9 @@ sub generate_db
23
23
}
24
24
25
25
$dbname .= $suffix ;
26
- $node -> command_ok([ ' createdb' , $dbname ]);
26
+ $node -> command_ok(
27
+ [ ' createdb' , $dbname ],
28
+ " created database with ASCII characters from $from_char to $to_char " );
27
29
}
28
30
29
31
# The test of pg_upgrade requires two clusters, an old one and a new one
@@ -71,7 +73,8 @@ sub generate_db
71
73
72
74
# Load the dump using the "postgres" database as "regression" does
73
75
# not exist yet, and we are done here.
74
- $oldnode -> command_ok([ ' psql' , ' -X' , ' -f' , $olddumpfile , ' postgres' ]);
76
+ $oldnode -> command_ok([ ' psql' , ' -X' , ' -f' , $olddumpfile , ' postgres' ],
77
+ ' loaded old dump file' );
75
78
}
76
79
else
77
80
{
@@ -136,7 +139,8 @@ sub generate_db
136
139
' psql' , ' -X' ,
137
140
' -f' , " $srcdir /src/bin/pg_upgrade/upgrade_adapt.sql" ,
138
141
' regression'
139
- ]);
142
+ ],
143
+ ' ran adapt script' );
140
144
}
141
145
142
146
# Initialize a new node for the upgrade.
@@ -233,7 +237,8 @@ sub generate_db
233
237
' pg_dumpall' , ' --no-sync' ,
234
238
' -d' , $newnode -> connstr(' postgres' ),
235
239
' -f' , " $tempdir /dump2.sql"
236
- ]);
240
+ ],
241
+ ' dump before running pg_upgrade' );
237
242
238
243
# Compare the two dumps, there should be no differences.
239
244
my $compare_res = compare(" $tempdir /dump1.sql" , " $tempdir /dump2.sql" );
0 commit comments