Skip to content

Commit b6ee30e

Browse files
committed
In 002_blocks.pl, try to prevent a HOT update.
Make the new tuple larger than the old one so that it, hopefully, won't manage to squeeze into leftover freespace on the same page. The test is trying to verify that the UPDATE touches 2 pages, but if a HOT update happens, then it doesn't. Per buildfarm.
1 parent f0106b6 commit b6ee30e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/pg_walsummary/t/002_blocks.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656

5757
# Update a row in the first block of the table and trigger a checkpoint.
5858
$node1->safe_psql('postgres', <<EOM);
59-
UPDATE mytable SET b = 'abcdefghijklmnopqrstuvwxyz' WHERE a = 2;
59+
UPDATE mytable SET b = 'abcdefghijklmnopqrstuvwxyz' || b || '01234567890'
60+
WHERE a = 2;
6061
CHECKPOINT;
6162
EOM
6263

0 commit comments

Comments
 (0)