Mask full LSN and checksum in tests
authorChristoph Berg <[email protected]>
Tue, 15 Apr 2025 12:43:10 +0000 (12:43 +0000)
committerChristoph Berg <[email protected]>
Tue, 15 Apr 2025 12:51:16 +0000 (14:51 +0200)
The old LSN masking didn't consider LSNs with a log id with two or more
digits. Checksums were hard-coded to 0000 so far, but the server might
actually write them.

To not clutter the test files with ever-longer sed commands, move the
command to a new sed.sh file.

Test files updated to follow this change, but there are pre-existing
problems on older PG majors and 32-bit that are still open.

Close #37.

Reported-By: Maksim Melnikov <[email protected]>
21 files changed:
expected/datatypes.out
expected/datatypes_3.out
expected/float.out
expected/float_1.out
expected/float_3.out
expected/float_4.out
expected/numeric.out
expected/numeric_1.out
expected/numeric_3.out
expected/numeric_4.out
expected/toast.out
expected/toast_1.out
expected/toast_3.out
expected/toast_4.out
expected/xml.out
expected/xml_1.out
expected/xml_3.out
run_test.sql
sed.sh[new file with mode: 0755]
sql/datatypes.sql
sql/toast.sql

index ff40415790a4e213461b6e8dc7e1d6d68aa0dd7e..74b3ecf6270c195c46c36b486fb44fbe14f4b7ad 100644 (file)
@@ -14,7 +14,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -27,9 +27,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8056 (0x1f78)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8016
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -48,7 +48,7 @@ COPY: 4       four
 ----------------------------------------------------------------------------------------------
 --
 -- do one test without options
-\! pg_filedump int,text.heap | sed -e 's/logid      ./logid      ./' -e 's/recoff 0x......../recoff 0x......../'
+\! pg_filedump int,text.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -61,9 +61,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8056 (0x1f78)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8016
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -88,7 +88,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -101,9 +101,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8072 (0x1f88)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8032
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -134,7 +134,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -147,9 +147,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      36 (0x0024)
  Block: Size 8192  Version    4            Upper    8104 (0x1fa8)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    3                      Free Space: 8068
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 36
 
 <Data> -----
@@ -178,7 +178,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -191,9 +191,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      32 (0x0020)
  Block: Size 8192  Version    4            Upper    8136 (0x1fc8)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    2                      Free Space: 8104
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 32
 
 <Data> -----
@@ -220,7 +220,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -233,9 +233,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      36 (0x0024)
  Block: Size 8192  Version    4            Upper    8104 (0x1fa8)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    3                      Free Space: 8068
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 36
 
 <Data> -----
@@ -264,7 +264,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -277,9 +277,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      52 (0x0034)
  Block: Size 8192  Version    4            Upper    7976 (0x1f28)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    7                      Free Space: 7924
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 52
 
 <Data> -----
@@ -316,7 +316,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -329,9 +329,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8072 (0x1f88)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8032
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -362,7 +362,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -375,9 +375,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      44 (0x002c)
  Block: Size 8192  Version    4            Upper    8032 (0x1f60)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    5                      Free Space: 7988
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 44
 
 <Data> -----
@@ -410,7 +410,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -423,9 +423,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      32 (0x0020)
  Block: Size 8192  Version    4            Upper    8136 (0x1fc8)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    2                      Free Space: 8104
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 32
 
 <Data> -----
@@ -452,7 +452,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -465,9 +465,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      36 (0x0024)
  Block: Size 8192  Version    4            Upper    7992 (0x1f38)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    3                      Free Space: 7956
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 36
 
 <Data> -----
@@ -496,7 +496,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -509,9 +509,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8072 (0x1f88)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8032
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -542,7 +542,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -555,9 +555,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8072 (0x1f88)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8032
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -588,7 +588,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -601,9 +601,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      32 (0x0020)
  Block: Size 8192  Version    4            Upper    8128 (0x1fc0)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    2                      Free Space: 8096
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 32
 
 <Data> -----
@@ -630,7 +630,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -643,9 +643,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8072 (0x1f88)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8032
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -676,7 +676,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -689,9 +689,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      44 (0x002c)
  Block: Size 8192  Version    4            Upper    8040 (0x1f68)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    5                      Free Space: 7996
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 44
 
 <Data> -----
@@ -725,7 +725,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -738,9 +738,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      44 (0x002c)
  Block: Size 8192  Version    4            Upper    8040 (0x1f68)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    5                      Free Space: 7996
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 44
 
 <Data> -----
@@ -773,7 +773,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -786,9 +786,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      44 (0x002c)
  Block: Size 8192  Version    4            Upper    8008 (0x1f48)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    5                      Free Space: 7964
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 44
 
 <Data> -----
@@ -821,7 +821,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -834,9 +834,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      36 (0x0024)
  Block: Size 8192  Version    4            Upper    8088 (0x1f98)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    3                      Free Space: 8052
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 36
 
 <Data> -----
@@ -865,7 +865,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -878,9 +878,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      36 (0x0024)
  Block: Size 8192  Version    4            Upper    8096 (0x1fa0)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    3                      Free Space: 8060
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 36
 
 <Data> -----
@@ -909,7 +909,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -922,9 +922,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      36 (0x0024)
  Block: Size 8192  Version    4            Upper    8096 (0x1fa0)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    3                      Free Space: 8060
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 36
 
 <Data> -----
@@ -953,7 +953,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -966,9 +966,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8072 (0x1f88)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8032
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
index f7ea25f2fef1894b74abf78aa9ff690bba81e9ac..6318d9818639ae393bf713adc88e8d1a63cc7d37 100644 (file)
@@ -14,7 +14,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -27,9 +27,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8068 (0x1f84)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8028
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -48,7 +48,7 @@ COPY: 4       four
 ----------------------------------------------------------------------------------------------
 --
 -- do one test without options
-\! pg_filedump int,text.heap | sed -e 's/logid      ./logid      ./' -e 's/recoff 0x......../recoff 0x......../'
+\! pg_filedump int,text.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -61,9 +61,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8068 (0x1f84)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8028
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -88,7 +88,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -101,9 +101,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8072 (0x1f88)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8032
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -134,7 +134,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -147,9 +147,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      36 (0x0024)
  Block: Size 8192  Version    4            Upper    8112 (0x1fb0)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    3                      Free Space: 8076
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 36
 
 <Data> -----
@@ -178,7 +178,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -191,9 +191,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      32 (0x0020)
  Block: Size 8192  Version    4            Upper    8140 (0x1fcc)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    2                      Free Space: 8108
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 32
 
 <Data> -----
@@ -220,7 +220,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -233,9 +233,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      36 (0x0024)
  Block: Size 8192  Version    4            Upper    8104 (0x1fa8)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    3                      Free Space: 8068
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 36
 
 <Data> -----
@@ -264,7 +264,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -277,9 +277,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      52 (0x0034)
  Block: Size 8192  Version    4            Upper    8000 (0x1f40)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    7                      Free Space: 7948
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 52
 
 <Data> -----
@@ -316,7 +316,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -329,9 +329,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8084 (0x1f94)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8044
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -362,7 +362,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -375,9 +375,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      44 (0x002c)
  Block: Size 8192  Version    4            Upper    8040 (0x1f68)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    5                      Free Space: 7996
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 44
 
 <Data> -----
@@ -410,7 +410,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -423,9 +423,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      32 (0x0020)
  Block: Size 8192  Version    4            Upper    8136 (0x1fc8)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    2                      Free Space: 8104
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 32
 
 <Data> -----
@@ -452,7 +452,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -465,9 +465,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      36 (0x0024)
  Block: Size 8192  Version    4            Upper    7992 (0x1f38)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    3                      Free Space: 7956
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 36
 
 <Data> -----
@@ -496,7 +496,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -509,9 +509,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8084 (0x1f94)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8044
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -542,7 +542,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -555,9 +555,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8084 (0x1f94)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8044
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -588,7 +588,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -601,9 +601,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      32 (0x0020)
  Block: Size 8192  Version    4            Upper    8132 (0x1fc4)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    2                      Free Space: 8100
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 32
 
 <Data> -----
@@ -630,7 +630,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -643,9 +643,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8072 (0x1f88)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8032
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
@@ -676,7 +676,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -689,9 +689,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      44 (0x002c)
  Block: Size 8192  Version    4            Upper    8040 (0x1f68)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    5                      Free Space: 7996
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 44
 
 <Data> -----
@@ -725,7 +725,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -738,9 +738,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      44 (0x002c)
  Block: Size 8192  Version    4            Upper    8040 (0x1f68)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    5                      Free Space: 7996
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 44
 
 <Data> -----
@@ -773,7 +773,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -786,9 +786,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      44 (0x002c)
  Block: Size 8192  Version    4            Upper    8024 (0x1f58)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    5                      Free Space: 7980
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 44
 
 <Data> -----
@@ -821,7 +821,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -834,9 +834,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      36 (0x0024)
  Block: Size 8192  Version    4            Upper    8088 (0x1f98)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    3                      Free Space: 8052
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 36
 
 <Data> -----
@@ -865,7 +865,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -878,9 +878,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      36 (0x0024)
  Block: Size 8192  Version    4            Upper    8104 (0x1fa8)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    3                      Free Space: 8068
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 36
 
 <Data> -----
@@ -909,7 +909,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -922,9 +922,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      36 (0x0024)
  Block: Size 8192  Version    4            Upper    8104 (0x1fa8)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    3                      Free Space: 8068
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 36
 
 <Data> -----
@@ -953,7 +953,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -966,9 +966,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      40 (0x0028)
  Block: Size 8192  Version    4            Upper    8084 (0x1f94)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    4                      Free Space: 8044
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 40
 
 <Data> -----
index 625abb2067b0df9767516d03778faca001ac19c1..8095330e7074cdbff942fe434376a1bebacd6eab 100644 (file)
@@ -15,7 +15,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -28,9 +28,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      48 (0x0030)
  Block: Size 8192  Version    4            Upper    8008 (0x1f48)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    6                      Free Space: 7960
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 48
 
 <Data> -----
@@ -65,7 +65,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -78,9 +78,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      48 (0x0030)
  Block: Size 8192  Version    4            Upper    8008 (0x1f48)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    6                      Free Space: 7960
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 48
 
 <Data> -----
index f64a0581e1b685623959aea3d73e9fae68d45e70..8ebff2bd2edc9a425074aa1b98bed6e35a69f25b 100644 (file)
@@ -15,7 +15,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -28,9 +28,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      48 (0x0030)
  Block: Size 8192  Version    4            Upper    8008 (0x1f48)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    6                      Free Space: 7960
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 48
 
 <Data> -----
@@ -65,7 +65,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -78,9 +78,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      48 (0x0030)
  Block: Size 8192  Version    4            Upper    8008 (0x1f48)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    6                      Free Space: 7960
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 48
 
 <Data> -----
index 441ebe8f6389cd202e04e664a6680c5c48ba1509..7b26e3a02d012d2f9cae9cdab52a00ff3bc02c0f 100644 (file)
@@ -15,7 +15,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -28,9 +28,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      48 (0x0030)
  Block: Size 8192  Version    4            Upper    8028 (0x1f5c)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    6                      Free Space: 7980
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 48
 
 <Data> -----
@@ -65,7 +65,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -78,9 +78,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      48 (0x0030)
  Block: Size 8192  Version    4            Upper    8008 (0x1f48)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    6                      Free Space: 7960
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 48
 
 <Data> -----
index 731487a26781f4b120655a4b289f3fa65602d151..e07d93c8f367cda2b084451eee27b19bfa18b1c6 100644 (file)
@@ -15,7 +15,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -28,9 +28,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      48 (0x0030)
  Block: Size 8192  Version    4            Upper    8028 (0x1f5c)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    6                      Free Space: 7980
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 48
 
 <Data> -----
@@ -65,7 +65,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -78,9 +78,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      48 (0x0030)
  Block: Size 8192  Version    4            Upper    8008 (0x1f48)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    6                      Free Space: 7960
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 48
 
 <Data> -----
index 5b24dcbd716632282cf8877fbdcdaedffdc80fb9..e1e90c05e18927c18f1b369e76e700aaaf745fd1 100644 (file)
@@ -16,7 +16,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -29,9 +29,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      52 (0x0034)
  Block: Size 8192  Version    4            Upper    7976 (0x1f28)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    7                      Free Space: 7924
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 52
 
 <Data> -----
index 1ba9896287cbe5ecd61919c9abf936bd23597b73..c2f88448271db5946daae7b880fc87302c226045 100644 (file)
@@ -19,7 +19,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -32,9 +32,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      44 (0x002c)
  Block: Size 8192  Version    4            Upper    8040 (0x1f68)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    5                      Free Space: 7996
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 44
 
 <Data> -----
index 8a29621f75abbb499b3a0bc840bf0a0f17713888..d4def9a2fac9bc062a2968d0b1adf6b0048c67ea 100644 (file)
@@ -16,7 +16,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -29,9 +29,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      52 (0x0034)
  Block: Size 8192  Version    4            Upper    7992 (0x1f38)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    7                      Free Space: 7940
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 52
 
 <Data> -----
index 2065fe0b93dce80355bf3d4e351cbcc6d85315b3..b17d99250eea57cf335ff2d6db966bbe28d57097 100644 (file)
@@ -19,7 +19,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -32,9 +32,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      44 (0x002c)
  Block: Size 8192  Version    4            Upper    8048 (0x1f70)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    5                      Free Space: 8004
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 44
 
 <Data> -----
index a52a29d2b0686ec57a2380a15b7d70c5f607dd57..08369a71a9112b3ff3c947d4a68c1c6ff7dab224 100644 (file)
@@ -26,7 +26,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'reltoastrelid')) as toast_loi
 \set output :reltoastrelid
 \lo_export :toast_loid :output
 \setenv relname :relname
-\! pg_filedump -D text,text $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D text,text $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -39,9 +39,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      52 (0x0034)
  Block: Size 8192  Version    4            Upper    7472 (0x1d30)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    7                      Free Space: 7420
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 52
 
 <Data> -----
@@ -52,17 +52,17 @@ COPY: long inline uncompressed      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  Item   3 -- Length:   64  Offset: 7824 (0x1e90)  Flags: NORMAL
 COPY: external uncompressed    (TOASTED,uncompressed)
  Item   4 -- Length:  107  Offset: 7712 (0x1e20)  Flags: NORMAL
-COPY: inline compressed pglz   0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 
+COPY: inline compressed pglz   0123456789 8< [snipped]
  Item   5 -- Length:   67  Offset: 7640 (0x1dd8)  Flags: NORMAL
 COPY: extended compressed pglz (TOASTED,pglz)
  Item   6 -- Length:   90  Offset: 7544 (0x1d78)  Flags: NORMAL
-COPY: inline compressed lz4    0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 
+COPY: inline compressed lz4    0123456789 8< [snipped]
  Item   7 -- Length:   66  Offset: 7472 (0x1d30)  Flags: NORMAL
 COPY: extended compressed lz4  (TOASTED,lz4)
 
 
 *** End of File Encountered. Last Block Read: 0 ***
-\! pg_filedump -D text,text -t $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../" -e 's/id:  ...../id:  ...../g' -e 's/ 8< .*//'
+\! pg_filedump -D text,text -t $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -75,9 +75,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      52 (0x0034)
  Block: Size 8192  Version    4            Upper    7472 (0x1d30)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    7                      Free Space: 7420
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 52
 
 <Data> -----
@@ -87,17 +87,17 @@ COPY: short inline  xxx
 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
-COPY: external uncompressed    0123456789
+COPY: external uncompressed    0123456789 8< [snipped]
  Item   4 -- Length:  107  Offset: 7712 (0x1e20)  Flags: NORMAL
-COPY: inline compressed pglz   0123456789
+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
-COPY: extended compressed pglz 0123456789
+COPY: extended compressed pglz 0123456789 8< [snipped]
  Item   6 -- Length:   90  Offset: 7544 (0x1d78)  Flags: NORMAL
-COPY: inline compressed lz4    0123456789
+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
-COPY: extended compressed lz4  0123456789
+COPY: extended compressed lz4  0123456789 8< [snipped]
 
 
 *** End of File Encountered. Last Block Read: 0 ***
index 146739504794dc6b31a3ba2c72be6db117f904be..b4645cbb51bac31d94f978ae484f90f44d23e650 100644 (file)
@@ -29,7 +29,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'reltoastrelid')) as toast_loi
 \set output :reltoastrelid
 \lo_export :toast_loid :output
 \setenv relname :relname
-\! pg_filedump -D text,text $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D text,text $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -42,9 +42,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      52 (0x0034)
  Block: Size 8192  Version    4            Upper    7456 (0x1d20)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    7                      Free Space: 7404
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 52
 
 <Data> -----
@@ -55,17 +55,17 @@ COPY: long inline uncompressed      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  Item   3 -- Length:   64  Offset: 7824 (0x1e90)  Flags: NORMAL
 COPY: external uncompressed    (TOASTED,uncompressed)
  Item   4 -- Length:  107  Offset: 7712 (0x1e20)  Flags: NORMAL
-COPY: inline compressed pglz   0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 
+COPY: inline compressed pglz   0123456789 8< [snipped]
  Item   5 -- Length:   67  Offset: 7640 (0x1dd8)  Flags: NORMAL
 COPY: extended compressed pglz (TOASTED,pglz)
  Item   6 -- Length:  107  Offset: 7528 (0x1d68)  Flags: NORMAL
-COPY: inline compressed lz4    0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 
+COPY: inline compressed lz4    0123456789 8< [snipped]
  Item   7 -- Length:   66  Offset: 7456 (0x1d20)  Flags: NORMAL
 COPY: extended compressed lz4  (TOASTED,pglz)
 
 
 *** End of File Encountered. Last Block Read: 0 ***
-\! pg_filedump -D text,text -t $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../" -e 's/id:  ...../id:  ...../g' -e 's/ 8< .*//'
+\! pg_filedump -D text,text -t $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -78,9 +78,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      52 (0x0034)
  Block: Size 8192  Version    4            Upper    7456 (0x1d20)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    7                      Free Space: 7404
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 52
 
 <Data> -----
@@ -90,17 +90,17 @@ COPY: short inline  xxx
 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
-COPY: external uncompressed    0123456789
+COPY: external uncompressed    0123456789 8< [snipped]
  Item   4 -- Length:  107  Offset: 7712 (0x1e20)  Flags: NORMAL
-COPY: inline compressed pglz   0123456789
+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
-COPY: extended compressed pglz 0123456789
+COPY: extended compressed pglz 0123456789 8< [snipped]
  Item   6 -- Length:  107  Offset: 7528 (0x1d68)  Flags: NORMAL
-COPY: inline compressed lz4    0123456789
+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
-COPY: extended compressed lz4  0123456789
+COPY: extended compressed lz4  0123456789 8< [snipped]
 
 
 *** End of File Encountered. Last Block Read: 0 ***
index 5d9b29a3e2c1d8565b3c082b805e231c5c270ffc..3b18250617287d63946b00a890504972f948c5f9 100644 (file)
@@ -26,7 +26,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'reltoastrelid')) as toast_loi
 \set output :reltoastrelid
 \lo_export :toast_loid :output
 \setenv relname :relname
-\! pg_filedump -D text,text $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D text,text $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -39,9 +39,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      52 (0x0034)
  Block: Size 8192  Version    4            Upper    7492 (0x1d44)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    7                      Free Space: 7440
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 52
 
 <Data> -----
@@ -52,17 +52,17 @@ COPY: long inline uncompressed      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  Item   3 -- Length:   64  Offset: 7828 (0x1e94)  Flags: NORMAL
 COPY: external uncompressed    (TOASTED,uncompressed)
  Item   4 -- Length:  107  Offset: 7720 (0x1e28)  Flags: NORMAL
-COPY: inline compressed pglz   0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 
+COPY: inline compressed pglz   0123456789 8< [snipped]
  Item   5 -- Length:   67  Offset: 7652 (0x1de4)  Flags: NORMAL
 COPY: extended compressed pglz (TOASTED,pglz)
  Item   6 -- Length:   90  Offset: 7560 (0x1d88)  Flags: NORMAL
-COPY: inline compressed lz4    0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 
+COPY: inline compressed lz4    0123456789 8< [snipped]
  Item   7 -- Length:   66  Offset: 7492 (0x1d44)  Flags: NORMAL
 COPY: extended compressed lz4  (TOASTED,lz4)
 
 
 *** End of File Encountered. Last Block Read: 0 ***
-\! pg_filedump -D text,text -t $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../" -e 's/id:  ...../id:  ...../g' -e 's/ 8< .*//'
+\! pg_filedump -D text,text -t $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -75,9 +75,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      52 (0x0034)
  Block: Size 8192  Version    4            Upper    7492 (0x1d44)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    7                      Free Space: 7440
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 52
 
 <Data> -----
@@ -87,17 +87,17 @@ COPY: short inline  xxx
 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
-COPY: external uncompressed    0123456789
+COPY: external uncompressed    0123456789 8< [snipped]
  Item   4 -- Length:  107  Offset: 7720 (0x1e28)  Flags: NORMAL
-COPY: inline compressed pglz   0123456789
+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
-COPY: extended compressed pglz 0123456789
+COPY: extended compressed pglz 0123456789 8< [snipped]
  Item   6 -- Length:   90  Offset: 7560 (0x1d88)  Flags: NORMAL
-COPY: inline compressed lz4    0123456789
+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
-COPY: extended compressed lz4  0123456789
+COPY: extended compressed lz4  0123456789 8< [snipped]
 
 
 *** End of File Encountered. Last Block Read: 0 ***
index 805e23d013ca70cfc694b13d819df6824a55c524..95436c7363c42e272ee65cb3c336bc6e4714db06 100644 (file)
@@ -29,7 +29,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'reltoastrelid')) as toast_loi
 \set output :reltoastrelid
 \lo_export :toast_loid :output
 \setenv relname :relname
-\! pg_filedump -D text,text $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D text,text $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -42,9 +42,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      52 (0x0034)
  Block: Size 8192  Version    4            Upper    7476 (0x1d34)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    7                      Free Space: 7424
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 52
 
 <Data> -----
@@ -55,17 +55,17 @@ COPY: long inline uncompressed      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  Item   3 -- Length:   64  Offset: 7828 (0x1e94)  Flags: NORMAL
 COPY: external uncompressed    (TOASTED,uncompressed)
  Item   4 -- Length:  107  Offset: 7720 (0x1e28)  Flags: NORMAL
-COPY: inline compressed pglz   0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 
+COPY: inline compressed pglz   0123456789 8< [snipped]
  Item   5 -- Length:   67  Offset: 7652 (0x1de4)  Flags: NORMAL
 COPY: extended compressed pglz (TOASTED,pglz)
  Item   6 -- Length:  107  Offset: 7544 (0x1d78)  Flags: NORMAL
-COPY: inline compressed lz4    0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 0123456789 8< 
+COPY: inline compressed lz4    0123456789 8< [snipped]
  Item   7 -- Length:   66  Offset: 7476 (0x1d34)  Flags: NORMAL
 COPY: extended compressed lz4  (TOASTED,pglz)
 
 
 *** End of File Encountered. Last Block Read: 0 ***
-\! pg_filedump -D text,text -t $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../" -e 's/id:  ...../id:  ...../g' -e 's/ 8< .*//'
+\! pg_filedump -D text,text -t $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -80,7 +80,7 @@ Block    0 ********************************************************
  Block: Size 8192  Version    4            Upper    7476 (0x1d34)
  LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
  Items:    7                      Free Space: 7424
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 52
 
 <Data> -----
@@ -90,17 +90,17 @@ COPY: short inline  xxx
 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
-COPY: external uncompressed    0123456789
+COPY: external uncompressed    0123456789 8< [snipped]
  Item   4 -- Length:  107  Offset: 7720 (0x1e28)  Flags: NORMAL
-COPY: inline compressed pglz   0123456789
+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
-COPY: extended compressed pglz 0123456789
+COPY: extended compressed pglz 0123456789 8< [snipped]
  Item   6 -- Length:  107  Offset: 7544 (0x1d78)  Flags: NORMAL
-COPY: inline compressed lz4    0123456789
+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
-COPY: extended compressed lz4  0123456789
+COPY: extended compressed lz4  0123456789 8< [snipped]
 
 
 *** End of File Encountered. Last Block Read: 0 ***
index c7c10400ed268af4ab04a95eae3649d5ec695b47..6d81506f9477cce689db76a025032f02dbe9bf4d 100644 (file)
@@ -15,7 +15,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -28,9 +28,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      32 (0x0020)
  Block: Size 8192  Version    4            Upper    8128 (0x1fc0)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    2                      Free Space: 8096
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 32
 
 <Data> -----
index 2022565dcbca72563451ae7175502195b8664be5..282452faf971b8d4c1e1026f386f62a08ff86120 100644 (file)
@@ -20,7 +20,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
index fffda67e39a296c6a60f0610f8a703aa3e35a9f9..6aa5340a4122336445a3d16482ae387b26858147 100644 (file)
@@ -15,7 +15,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \set output :relname '.heap'
 \lo_export :oid :output
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 *******************************************************************
 * PostgreSQL File/Block Formatted Dump Utility
@@ -28,9 +28,9 @@ Block    0 ********************************************************
 <Header> -----
  Block Offset: 0x00000000         Offsets: Lower      32 (0x0020)
  Block: Size 8192  Version    4            Upper    8132 (0x1fc4)
- LSN:  logid      . recoff 0x........      Special  8192 (0x2000)
+ LSN:  logid ...... recoff 0x........      Special  8192 (0x2000)
  Items:    2                      Free Space: 8100
- Checksum: 0x0000  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
+ Checksum: 0x....  Prune XID: 0x00000000  Flags: 0x0004 (ALL_VISIBLE)
  Length (including item array): 32
 
 <Data> -----
index 23e776cbe13ef5e26c8df2e3874bcfdf2da7e155..c1f67097fd5254ebb8ac6ffe7d1181f5aba13904 100644 (file)
@@ -9,7 +9,7 @@ select lo_import(format('base/%s/%s', :'datoid', :'relfilenode')) as oid \gset
 \lo_export :oid :output
 
 \setenv relname :relname
-\! pg_filedump -D $relname $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
+\! pg_filedump -D $relname $relname.heap | ./sed.sh
 
 --
 ----------------------------------------------------------------------------------------------
diff --git a/sed.sh b/sed.sh
new file mode 100755 (executable)
index 0000000..b449684
--- /dev/null
+++ b/sed.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+sed -e "s/logid ....../logid ....../" \
+    -e "s/recoff 0x......../recoff 0x......../" \
+    -e "s/Checksum: 0x..../Checksum: 0x..../" \
+    -e "s/id:  ...../id:  ...../g" \
+    -e "s/ 8< .*/ 8< [snipped]/"
index e1a77036da9c036d7c7fe30245be5f18bf5a3409..4fcd86200347116e479ba73ec2ee89ad9d215c76 100644 (file)
@@ -10,7 +10,7 @@ insert into "int,text" values (1, 'one'), (null, 'two'), (3, null), (4, 'four');
 \ir run_test.sql
 
 -- do one test without options
-\! pg_filedump int,text.heap | sed -e 's/logid      ./logid      ./' -e 's/recoff 0x......../recoff 0x......../'
+\! pg_filedump int,text.heap | ./sed.sh
 
 ----------------------------------------------------------------------------------------------
 
index 985f1003871c8880ac07a5fd7b9c376c7dd7bce4..142a6c5f3aadcd8b83c7c90c3a728fb8f8276ab5 100644 (file)
@@ -34,5 +34,5 @@ select lo_import(format('base/%s/%s', :'datoid', :'reltoastrelid')) as toast_loi
 \lo_export :toast_loid :output
 
 \setenv relname :relname
-\! pg_filedump -D text,text $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../"
-\! pg_filedump -D text,text -t $relname.heap | sed -e "s/logid      ./logid      ./" -e "s/recoff 0x......../recoff 0x......../" -e 's/id:  ...../id:  ...../g' -e 's/ 8< .*//'
+\! pg_filedump -D text,text $relname.heap | ./sed.sh
+\! pg_filedump -D text,text -t $relname.heap | ./sed.sh