@@ -218,7 +218,7 @@ sub write_tuple
218
218
my $relpath = " $pgdata /$rel " ;
219
219
220
220
# Insert data and freeze public.test
221
- use constant ROWCOUNT => 18 ;
221
+ use constant ROWCOUNT => 16 ;
222
222
$node -> safe_psql(
223
223
' postgres' , qq(
224
224
INSERT INTO public.test (a, b, c)
@@ -297,7 +297,7 @@ sub write_tuple
297
297
$node -> start;
298
298
299
299
# Ok, Xids and page layout look ok. We can run corruption tests.
300
- plan tests => 21 ;
300
+ plan tests => 19 ;
301
301
302
302
# Check that pg_amcheck runs against the uncorrupted table without error.
303
303
$node -> command_ok(
@@ -504,7 +504,7 @@ sub header
504
504
push @expected ,
505
505
qr /${header} multitransaction ID 4 equals or exceeds next valid multitransaction ID 1/ ;
506
506
}
507
- elsif ($offnum == 15)
507
+ elsif ($offnum == 15) # Last offnum must equal ROWCOUNT
508
508
{
509
509
# Set both HEAP_XMAX_COMMITTED and HEAP_XMAX_IS_MULTI
510
510
$tup -> {t_infomask } |= HEAP_XMAX_COMMITTED;
@@ -514,24 +514,6 @@ sub header
514
514
push @expected ,
515
515
qr /${header} multitransaction ID 4000000000 precedes relation minimum multitransaction ID threshold 1/ ;
516
516
}
517
- elsif ($offnum == 16)
518
- {
519
- # Set raw size too large
520
- $tup -> {c_va_rawsize } = 1073741824;
521
-
522
- $header = header(0, $offnum , 2);
523
- push @expected ,
524
- qr /${header} toast value \d + rawsize 1073741824 exceeds limit 1073741823/ ;
525
- }
526
- elsif ($offnum == 17) # Last offnum should equal ROWCOUNT-1
527
- {
528
- # Set raw size too small.
529
- $tup -> {c_va_rawsize } = 9998;
530
-
531
- $header = header(0, $offnum , 2);
532
- push @expected ,
533
- qr /${header} toast value \d + external size 10000 exceeds maximum expected for rawsize 9998/ ;
534
- }
535
517
write_tuple($file , $offset , $tup );
536
518
}
537
519
close ($file )
0 commit comments