Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2a9fb89

Browse files
VictorSpirinvbwagner
authored andcommitted
In the pg_waldump test changed regular expression
1 parent 896598f commit 2a9fb89

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/bin/pg_waldump/t/001_timestamps.pl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,14 @@ sub command_output
9999
# run pg_waldump to check it's output
100100
my $xld_output = command_output(
101101
[ 'pg_waldump', '-S', '-E', "$pgdata/pg_wal/$xlogfilename1", "$pgdata/pg_wal/$xlogfilenameN" ]);
102-
ok($xld_output =~ qr/pg_waldump: start timestamp: ([^,]+), lsn: (.*)/, "start timestamp and lsn found");
102+
# ok($xld_output =~ qr/pg_waldump: start timestamp: ([^,]+), lsn: (.*)/, "start timestamp and lsn found");
103+
ok($xld_output =~ qr/pg_waldump: start timestamp: (.{10} [0-9:\.]+)[^,]+, lsn: (.*)/, "start timestamp and lsn found");
104+
105+
106+
103107
my ($startts, $startlsn) = ($1, $2);
104-
ok($xld_output =~ qr/pg_waldump: end timestamp: ([^,]+), lsn: (.*)/, "end timestamp and lsn found");
108+
# ok($xld_output =~ qr/pg_waldump: end timestamp: ([^,]+), lsn: (.*)/, "end timestamp and lsn found");
109+
ok($xld_output =~ qr/pg_waldump: end timestamp: (.{10} [0-9:\.]+)[^,]+, lsn: (.*)/, "end timestamp and lsn found");
105110

106111
# check commit timestamps for first and last commits
107112
my ($endts, $endlsn) = ($1, $2);

0 commit comments

Comments
 (0)