mirror of
https://github.com/postgres/postgres.git
synced 2026-01-05 23:38:41 +03:00
pageinspect: Add page_checksum function
Author: Tomas Vondra <tomas.vondra@2ndquadrant.com> Reviewed-by: Ashutosh Sharma <ashu.coek88@gmail.com>
This commit is contained in:
@@ -49,6 +49,12 @@ SELECT pagesize, version FROM page_header(get_raw_page('test1', 0));
|
||||
8192 | 4
|
||||
(1 row)
|
||||
|
||||
SELECT page_checksum(get_raw_page('test1', 0), 0) IS NOT NULL AS silly_checksum_test;
|
||||
silly_checksum_test
|
||||
---------------------
|
||||
t
|
||||
(1 row)
|
||||
|
||||
SELECT tuple_data_split('test1'::regclass, t_data, t_infomask, t_infomask2, t_bits)
|
||||
FROM heap_page_items(get_raw_page('test1', 0));
|
||||
tuple_data_split
|
||||
|
||||
Reference in New Issue
Block a user