| 1 |
/*------------------------------------------------------------------------- |
| 2 |
* |
| 3 |
* pageinspect.h |
| 4 |
* Common functions for pageinspect. |
| 5 |
* |
| 6 |
* Copyright (c) 2017-2025, PostgreSQL Global Development Group |
| 7 |
* |
| 8 |
* IDENTIFICATION |
| 9 |
* contrib/pageinspect/pageinspect.h |
| 10 |
* |
| 11 |
*------------------------------------------------------------------------- |
| 12 |
*/ |
| 13 |
#ifndef _PAGEINSPECT_H_ |
| 14 |
#define _PAGEINSPECT_H_ |
| 15 |
|
| 16 |
#include "storage/bufpage.h" |
| 17 |
|
| 18 |
/* |
| 19 |
* Extension version number, for supporting older extension versions' objects |
| 20 |
*/ |
| 21 |
enum pageinspect_version |
| 22 |
{ |
| 23 |
PAGEINSPECT_V1_8, |
| 24 |
PAGEINSPECT_V1_9, |
| 25 |
}; |
| 26 |
|
| 27 |
/* in rawpage.c */ |
| 28 |
extern Page get_page_from_raw(bytea *raw_page); |
| 29 |
|
| 30 |
#endif /* _PAGEINSPECT_H_ */ |