pgfincore
examine and manage the os buffer cache
Repository
klando/pgfincore
https://github.com/klando/pgfincore
Source
pgfincore-1.4.0.tar.gz
pgfincore-1.4.0.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pgfincore | 1.4.0 | ADMIN | BSD-3-Clause | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 5060 | pgfincore | No | Yes | No | Yes | No | Yes | - |
pg18 el fixed by vonng
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PGDG | 1.4.0 | 1817161514 | pgfincore | - |
| RPM | PGDG | 1.4.0 | 1817161514 | pgfincore_$v | - |
| DEB | PGDG | 1.4.0 | 1817161514 | postgresql-$v-pgfincore | - |
Build
You can build the RPM / DEB packages for pgfincore using pig build:
Install
You can install pgfincore directly. First, make sure the PGDG repository is added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
pgfincore provides functions to inspect and manage OS page cache contents for PostgreSQL relations using mincore and POSIX_FADVISE.
Inspect Cache State
Returns per-segment info: relpath, segment, os_page_size, rel_os_pages, pages_mem (pages in OS cache), group_mem, os_pages_free, pages_dirty, group_dirty.
Use pgfincore('relation', true) to include the databit varbit map for snapshot/restore.
System Info
Preload into OS Cache
Evict from OS Cache
Other POSIX_FADVISE Flags
Snapshot and Restore Cache State
Direct Page Cache Control
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)