mirror of
https://github.com/wader/fq.git
synced 2024-11-29 23:27:12 +03:00
25 lines
515 B
Markdown
25 lines
515 B
Markdown
|
### To see heap page's content
|
||
|
```sh
|
||
|
$ fq -d pg_heap -o flavour=postgres14 ".[0]" 16994
|
||
|
```
|
||
|
|
||
|
### To see page's header
|
||
|
|
||
|
```sh
|
||
|
$ fq -d pg_heap -o flavour=postgres14 ".[0].page_header" 16994
|
||
|
```
|
||
|
|
||
|
### First and last item pointers on first page
|
||
|
|
||
|
```sh
|
||
|
$ fq -d pg_heap -o flavour=postgres14 ".[0].pd_linp[0, -1]" 16994
|
||
|
```
|
||
|
|
||
|
### First and last tuple on first page
|
||
|
|
||
|
```sh
|
||
|
$ fq -d pg_heap -o flavour=postgres14 ".[0].tuples[0, -1]" 16994
|
||
|
```
|
||
|
|
||
|
### References
|
||
|
- https://www.postgresql.org/docs/current/storage-page-layout.html
|