mirror of
https://github.com/postgres/postgres.git
synced 2025-08-06 18:42:54 +03:00
pageinspect: Add tests
This commit is contained in:
14
contrib/pageinspect/sql/gin.sql
Normal file
14
contrib/pageinspect/sql/gin.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE TABLE test1 (x int, y int[]);
|
||||
INSERT INTO test1 VALUES (1, ARRAY[11, 111]);
|
||||
CREATE INDEX test1_y_idx ON test1 USING gin (y);
|
||||
|
||||
\x
|
||||
|
||||
SELECT * FROM gin_metapage_info(get_raw_page('test1_y_idx', 0));
|
||||
SELECT * FROM gin_metapage_info(get_raw_page('test1_y_idx', 1));
|
||||
|
||||
SELECT * FROM gin_page_opaque_info(get_raw_page('test1_y_idx', 1));
|
||||
|
||||
SELECT * FROM gin_leafpage_items(get_raw_page('test1_y_idx', 1));
|
||||
|
||||
DROP TABLE test1;
|
Reference in New Issue
Block a user