mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	Author: Tomas Vondra <tomas.vondra@2ndquadrant.com> Reviewed-by: Ashutosh Sharma <ashu.coek88@gmail.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			673 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			673 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| CREATE TABLE test1 (a int8, b text);
 | |
| INSERT INTO test1 VALUES (72057594037927937, 'text');
 | |
| CREATE INDEX test1_a_idx ON test1 USING btree (a);
 | |
| 
 | |
| \x
 | |
| 
 | |
| SELECT * FROM bt_metap('test1_a_idx');
 | |
| 
 | |
| SELECT * FROM bt_page_stats('test1_a_idx', 0);
 | |
| SELECT * FROM bt_page_stats('test1_a_idx', 1);
 | |
| SELECT * FROM bt_page_stats('test1_a_idx', 2);
 | |
| 
 | |
| SELECT * FROM bt_page_items('test1_a_idx', 0);
 | |
| SELECT * FROM bt_page_items('test1_a_idx', 1);
 | |
| SELECT * FROM bt_page_items('test1_a_idx', 2);
 | |
| 
 | |
| SELECT * FROM bt_page_items(get_raw_page('test1_a_idx', 0));
 | |
| SELECT * FROM bt_page_items(get_raw_page('test1_a_idx', 1));
 | |
| SELECT * FROM bt_page_items(get_raw_page('test1_a_idx', 2));
 | |
| 
 | |
| DROP TABLE test1;
 |