mirror of
https://github.com/wader/fq.git
synced 2024-12-28 16:13:11 +03:00
30 lines
609 B
Markdown
30 lines
609 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
|
|
```
|
|
|
|
### Authors
|
|
- Pavel Safonov
|
|
p.n.safonov@gmail.com
|
|
[@pnsafonov](https://github.com/pnsafonov)
|
|
|
|
### References
|
|
- https://www.postgresql.org/docs/current/storage-page-layout.html |