pg_proctab
PostgreSQL extension to access the OS process table
pgnodemx : PostgreSQL extension to access the OS process table
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 6450 | pg_proctab | pgnodemx | 2.0.1 |
STAT | BSD-3-Clause | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-r | No | Yes | No | Yes | yes | no |
| Relationships | |
|---|---|
| See Also | system_stats pg_stat_kcache pgmeminfo |
| Siblings | pgnodemx |
Bundled with pgnodemx package/source 2.0.1 for PostgreSQL 14-18; this package ships pg_proctab as a compatibility stub backed by pgnodemx.
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 2.0.1 |
18 17 16 15 14 | pgnodemx |
- |
| RPM | PIGSTY | 2.0.1 |
18 17 16 15 14 | pgnodemx_$v |
- |
| DEB | PGDG | 2.0.1 |
18 17 16 15 14 | postgresql-$v-pgnodemx |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 |
| el8.aarch64 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 |
| el9.x86_64 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 |
| el9.aarch64 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 |
| el10.x86_64 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 |
| el10.aarch64 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 | PIGSTY 2.0.1 |
| d12.x86_64 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 |
| d12.aarch64 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 |
| d13.x86_64 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 |
| d13.aarch64 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 |
| u22.x86_64 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 |
| u22.aarch64 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 |
| u24.x86_64 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 |
| u24.aarch64 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 |
| u26.x86_64 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 |
| u26.aarch64 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 | PGDG 2.0.1 |
Source
github.com/markwkm/pg_proctab
pgnodemx-2.0.1.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
pg_proctab allows querying operating system process, CPU, memory, disk, and load statistics from within PostgreSQL via SQL functions.
Functions
Process information (pg_proctab()):
Returns per-process: pid, comm, fullcomm, state, ppid, utime, stime, priority, nice, num_threads, vsize, rss, processor, uid, username, rchar, wchar, reads, writes, and more.
CPU time (pg_cputime()):
Load average (pg_loadavg()):
Memory usage (pg_memusage()):
Disk usage (pg_diskusage()):