Mask all digits of value and toast relation ids
authorChristoph Berg <myon@debian.org>
Tue, 15 Apr 2025 12:56:48 +0000 (12:56 +0000)
committerChristoph Berg <myon@debian.org>
Tue, 15 Apr 2025 12:56:48 +0000 (12:56 +0000)
This was not noticed before because I was always running the tests in a
fresh instance.

Close #33.

Author: Svetlana Derevyanko <s.derevyanko@postgrespro.ru>

expected/toast.out
expected/toast_1.out
expected/toast_3.out
expected/toast_4.out
sed.sh

index 08369a71a9112b3ff3c947d4a68c1c6ff7dab224..0e90b4274d8c826b697ad3c2659320cb2d2225bf 100644 (file)
@@ -86,17 +86,17 @@ COPY: short inline  xxx
  Item   2 -- Length:  256  Offset: 7888 (0x1ed0)  Flags: NORMAL
 COPY: long inline uncompressed xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  Item   3 -- Length:   64  Offset: 7824 (0x1e90)  Flags: NORMAL
-  TOAST value. Raw size:     2804, external size:     2800, value id:  ....., toast relation id:  ....., chunks:      2
+  TOAST value. Raw size:     2804, external size:     2800, value id: ......, toast relation id: ......, chunks:      2
 COPY: external uncompressed    0123456789 8< [snipped]
  Item   4 -- Length:  107  Offset: 7712 (0x1e20)  Flags: NORMAL
 COPY: inline compressed pglz   0123456789 8< [snipped]
  Item   5 -- Length:   67  Offset: 7640 (0x1dd8)  Flags: NORMAL
-  TOAST value. Raw size:   280004, external size:     3226, value id:  ....., toast relation id:  ....., chunks:      2
+  TOAST value. Raw size:   280004, external size:     3226, value id: ......, toast relation id: ......, chunks:      2
 COPY: extended compressed pglz 0123456789 8< [snipped]
  Item   6 -- Length:   90  Offset: 7544 (0x1d78)  Flags: NORMAL
 COPY: inline compressed lz4    0123456789 8< [snipped]
  Item   7 -- Length:   66  Offset: 7472 (0x1d30)  Flags: NORMAL
-  TOAST value. Raw size:   700004, external size:     2772, value id:  ....., toast relation id:  ....., chunks:      2
+  TOAST value. Raw size:   700004, external size:     2772, value id: ......, toast relation id: ......, chunks:      2
 COPY: extended compressed lz4  0123456789 8< [snipped]
 
 
index b4645cbb51bac31d94f978ae484f90f44d23e650..1ffb1cf01aa4ba9f190d1dba78f27d868be3d8bb 100644 (file)
@@ -89,17 +89,17 @@ COPY: short inline  xxx
  Item   2 -- Length:  256  Offset: 7888 (0x1ed0)  Flags: NORMAL
 COPY: long inline uncompressed xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  Item   3 -- Length:   64  Offset: 7824 (0x1e90)  Flags: NORMAL
-  TOAST value. Raw size:     2804, external size:     2800, value id:  ....., toast relation id:  ....., chunks:      2
+  TOAST value. Raw size:     2804, external size:     2800, value id: ......, toast relation id: ......, chunks:      2
 COPY: external uncompressed    0123456789 8< [snipped]
  Item   4 -- Length:  107  Offset: 7712 (0x1e20)  Flags: NORMAL
 COPY: inline compressed pglz   0123456789 8< [snipped]
  Item   5 -- Length:   67  Offset: 7640 (0x1dd8)  Flags: NORMAL
-  TOAST value. Raw size:   280004, external size:     3226, value id:  ....., toast relation id:  ....., chunks:      2
+  TOAST value. Raw size:   280004, external size:     3226, value id: ......, toast relation id: ......, chunks:      2
 COPY: extended compressed pglz 0123456789 8< [snipped]
  Item   6 -- Length:  107  Offset: 7528 (0x1d68)  Flags: NORMAL
 COPY: inline compressed lz4    0123456789 8< [snipped]
  Item   7 -- Length:   66  Offset: 7456 (0x1d20)  Flags: NORMAL
-  TOAST value. Raw size:   700004, external size:     8035, value id:  ....., toast relation id:  ....., chunks:      5
+  TOAST value. Raw size:   700004, external size:     8035, value id: ......, toast relation id: ......, chunks:      5
 COPY: extended compressed lz4  0123456789 8< [snipped]
 
 
index 3b18250617287d63946b00a890504972f948c5f9..84aed39d65561ada3ecb21a10ce76928221657c1 100644 (file)
@@ -86,17 +86,17 @@ COPY: short inline  xxx
  Item   2 -- Length:  256  Offset: 7892 (0x1ed4)  Flags: NORMAL
 COPY: long inline uncompressed xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  Item   3 -- Length:   64  Offset: 7828 (0x1e94)  Flags: NORMAL
-  TOAST value. Raw size:     2804, external size:     2800, value id:  ....., toast relation id:  ....., chunks:      2
+  TOAST value. Raw size:     2804, external size:     2800, value id: ......, toast relation id: ......, chunks:      2
 COPY: external uncompressed    0123456789 8< [snipped]
  Item   4 -- Length:  107  Offset: 7720 (0x1e28)  Flags: NORMAL
 COPY: inline compressed pglz   0123456789 8< [snipped]
  Item   5 -- Length:   67  Offset: 7652 (0x1de4)  Flags: NORMAL
-  TOAST value. Raw size:   280004, external size:     3226, value id:  ....., toast relation id:  ....., chunks:      2
+  TOAST value. Raw size:   280004, external size:     3226, value id: ......, toast relation id: ......, chunks:      2
 COPY: extended compressed pglz 0123456789 8< [snipped]
  Item   6 -- Length:   90  Offset: 7560 (0x1d88)  Flags: NORMAL
 COPY: inline compressed lz4    0123456789 8< [snipped]
  Item   7 -- Length:   66  Offset: 7492 (0x1d44)  Flags: NORMAL
-  TOAST value. Raw size:   700004, external size:     2772, value id:  ....., toast relation id:  ....., chunks:      2
+  TOAST value. Raw size:   700004, external size:     2772, value id: ......, toast relation id: ......, chunks:      2
 COPY: extended compressed lz4  0123456789 8< [snipped]
 
 
index 95436c7363c42e272ee65cb3c336bc6e4714db06..fbdd1988c1e502bccadad36cc08c77c46b46e676 100644 (file)
@@ -89,17 +89,17 @@ COPY: short inline  xxx
  Item   2 -- Length:  256  Offset: 7892 (0x1ed4)  Flags: NORMAL
 COPY: long inline uncompressed xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  Item   3 -- Length:   64  Offset: 7828 (0x1e94)  Flags: NORMAL
-  TOAST value. Raw size:     2804, external size:     2800, value id:  ....., toast relation id:  ....., chunks:      2
+  TOAST value. Raw size:     2804, external size:     2800, value id: ......, toast relation id: ......, chunks:      2
 COPY: external uncompressed    0123456789 8< [snipped]
  Item   4 -- Length:  107  Offset: 7720 (0x1e28)  Flags: NORMAL
 COPY: inline compressed pglz   0123456789 8< [snipped]
  Item   5 -- Length:   67  Offset: 7652 (0x1de4)  Flags: NORMAL
-  TOAST value. Raw size:   280004, external size:     3226, value id:  ....., toast relation id:  ....., chunks:      2
+  TOAST value. Raw size:   280004, external size:     3226, value id: ......, toast relation id: ......, chunks:      2
 COPY: extended compressed pglz 0123456789 8< [snipped]
  Item   6 -- Length:  107  Offset: 7544 (0x1d78)  Flags: NORMAL
 COPY: inline compressed lz4    0123456789 8< [snipped]
  Item   7 -- Length:   66  Offset: 7476 (0x1d34)  Flags: NORMAL
-  TOAST value. Raw size:   700004, external size:     8035, value id:  ....., toast relation id:  ....., chunks:      5
+  TOAST value. Raw size:   700004, external size:     8035, value id: ......, toast relation id: ......, chunks:      5
 COPY: extended compressed lz4  0123456789 8< [snipped]
 
 
diff --git a/sed.sh b/sed.sh
index b4496844aad1c8a6eb5ad085763a1776f6cc3171..dd8d971d26c8e8f91856c7f4ba23617967045481 100755 (executable)
--- a/sed.sh
+++ b/sed.sh
@@ -3,5 +3,5 @@
 sed -e "s/logid ....../logid ....../" \
     -e "s/recoff 0x......../recoff 0x......../" \
     -e "s/Checksum: 0x..../Checksum: 0x..../" \
-    -e "s/id:  ...../id:  ...../g" \
+    -e "s/id: ....../id: ....../g" \
     -e "s/ 8< .*/ 8< [snipped]/"