pg_command_fw

pg_command_fw

pg_command_fw : DDL and utility command firewall for PostgreSQL

Overview

ID Extension Package Version Category License Language
7400
pg_command_fw
pg_command_fw
0.1.0
SEC
BSD-3-Clause
Rust
Attribute Has Binary Has Library Need Load Has DDL Relocatable Trusted
--sLd--
No
Yes
Yes
Yes
no
no
Relationships
See Also
pgaudit
pgextwlist
login_hook
set_user

Requires shared_preload_libraries = pg_command_fw to activate hooks for all sessions.

Packages

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT
PIGSTY
0.1.0
18
17
16
15
14
pg_command_fw -
RPM
PIGSTY
0.1.0
18
17
16
15
14
pg_command_fw_$v -
DEB
PIGSTY
0.1.0
18
17
16
15
14
postgresql-$v-pg-command-fw -
Linux / PG PG18 PG17 PG16 PG15 PG14
el8.x86_64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
el8.aarch64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
el9.x86_64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
el9.aarch64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
el10.x86_64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
el10.aarch64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
d12.x86_64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
d12.aarch64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
d13.x86_64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
d13.aarch64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
u22.x86_64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
u22.aarch64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
u24.x86_64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
u24.aarch64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
MISS
Package Version OS ORG SIZE File URL
pg_command_fw_18 0.1.0 el8.x86_64 pigsty 313.1 KiB pg_command_fw_18-0.1.0-1PIGSTY.el8.x86_64.rpm
pg_command_fw_18 0.1.0 el8.aarch64 pigsty 204.4 KiB pg_command_fw_18-0.1.0-1PIGSTY.el8.aarch64.rpm
pg_command_fw_18 0.1.0 el9.x86_64 pigsty 329.1 KiB pg_command_fw_18-0.1.0-1PIGSTY.el9.x86_64.rpm
pg_command_fw_18 0.1.0 el9.aarch64 pigsty 216.5 KiB pg_command_fw_18-0.1.0-1PIGSTY.el9.aarch64.rpm
pg_command_fw_18 0.1.0 el10.x86_64 pigsty 329.4 KiB pg_command_fw_18-0.1.0-1PIGSTY.el10.x86_64.rpm
pg_command_fw_18 0.1.0 el10.aarch64 pigsty 217.4 KiB pg_command_fw_18-0.1.0-1PIGSTY.el10.aarch64.rpm
postgresql-18-pg-command-fw 0.1.0 d12.x86_64 pigsty 255.4 KiB postgresql-18-pg-command-fw_0.1.0-1PIGSTY~bookworm_amd64.deb
postgresql-18-pg-command-fw 0.1.0 d12.aarch64 pigsty 155.2 KiB postgresql-18-pg-command-fw_0.1.0-1PIGSTY~bookworm_arm64.deb
postgresql-18-pg-command-fw 0.1.0 d13.x86_64 pigsty 255.2 KiB postgresql-18-pg-command-fw_0.1.0-1PIGSTY~trixie_amd64.deb
postgresql-18-pg-command-fw 0.1.0 d13.aarch64 pigsty 155.3 KiB postgresql-18-pg-command-fw_0.1.0-1PIGSTY~trixie_arm64.deb
postgresql-18-pg-command-fw 0.1.0 u22.x86_64 pigsty 288.7 KiB postgresql-18-pg-command-fw_0.1.0-1PIGSTY~jammy_amd64.deb
postgresql-18-pg-command-fw 0.1.0 u22.aarch64 pigsty 179.7 KiB postgresql-18-pg-command-fw_0.1.0-1PIGSTY~jammy_arm64.deb
postgresql-18-pg-command-fw 0.1.0 u24.x86_64 pigsty 286.2 KiB postgresql-18-pg-command-fw_0.1.0-1PIGSTY~noble_amd64.deb
postgresql-18-pg-command-fw 0.1.0 u24.aarch64 pigsty 178.3 KiB postgresql-18-pg-command-fw_0.1.0-1PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pg_command_fw_17 0.1.0 el8.x86_64 pigsty 313.4 KiB pg_command_fw_17-0.1.0-1PIGSTY.el8.x86_64.rpm
pg_command_fw_17 0.1.0 el8.aarch64 pigsty 204.5 KiB pg_command_fw_17-0.1.0-1PIGSTY.el8.aarch64.rpm
pg_command_fw_17 0.1.0 el9.x86_64 pigsty 329.3 KiB pg_command_fw_17-0.1.0-1PIGSTY.el9.x86_64.rpm
pg_command_fw_17 0.1.0 el9.aarch64 pigsty 216.4 KiB pg_command_fw_17-0.1.0-1PIGSTY.el9.aarch64.rpm
pg_command_fw_17 0.1.0 el10.x86_64 pigsty 329.3 KiB pg_command_fw_17-0.1.0-1PIGSTY.el10.x86_64.rpm
pg_command_fw_17 0.1.0 el10.aarch64 pigsty 217.4 KiB pg_command_fw_17-0.1.0-1PIGSTY.el10.aarch64.rpm
postgresql-17-pg-command-fw 0.1.0 d12.x86_64 pigsty 255.2 KiB postgresql-17-pg-command-fw_0.1.0-1PIGSTY~bookworm_amd64.deb
postgresql-17-pg-command-fw 0.1.0 d12.aarch64 pigsty 155.2 KiB postgresql-17-pg-command-fw_0.1.0-1PIGSTY~bookworm_arm64.deb
postgresql-17-pg-command-fw 0.1.0 d13.x86_64 pigsty 254.5 KiB postgresql-17-pg-command-fw_0.1.0-1PIGSTY~trixie_amd64.deb
postgresql-17-pg-command-fw 0.1.0 d13.aarch64 pigsty 155.1 KiB postgresql-17-pg-command-fw_0.1.0-1PIGSTY~trixie_arm64.deb
postgresql-17-pg-command-fw 0.1.0 u22.x86_64 pigsty 288.7 KiB postgresql-17-pg-command-fw_0.1.0-1PIGSTY~jammy_amd64.deb
postgresql-17-pg-command-fw 0.1.0 u22.aarch64 pigsty 179.7 KiB postgresql-17-pg-command-fw_0.1.0-1PIGSTY~jammy_arm64.deb
postgresql-17-pg-command-fw 0.1.0 u24.x86_64 pigsty 285.8 KiB postgresql-17-pg-command-fw_0.1.0-1PIGSTY~noble_amd64.deb
postgresql-17-pg-command-fw 0.1.0 u24.aarch64 pigsty 178.1 KiB postgresql-17-pg-command-fw_0.1.0-1PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pg_command_fw_16 0.1.0 el8.x86_64 pigsty 313.0 KiB pg_command_fw_16-0.1.0-1PIGSTY.el8.x86_64.rpm
pg_command_fw_16 0.1.0 el8.aarch64 pigsty 204.4 KiB pg_command_fw_16-0.1.0-1PIGSTY.el8.aarch64.rpm
pg_command_fw_16 0.1.0 el9.x86_64 pigsty 329.0 KiB pg_command_fw_16-0.1.0-1PIGSTY.el9.x86_64.rpm
pg_command_fw_16 0.1.0 el9.aarch64 pigsty 216.4 KiB pg_command_fw_16-0.1.0-1PIGSTY.el9.aarch64.rpm
pg_command_fw_16 0.1.0 el10.x86_64 pigsty 328.9 KiB pg_command_fw_16-0.1.0-1PIGSTY.el10.x86_64.rpm
pg_command_fw_16 0.1.0 el10.aarch64 pigsty 217.5 KiB pg_command_fw_16-0.1.0-1PIGSTY.el10.aarch64.rpm
postgresql-16-pg-command-fw 0.1.0 d12.x86_64 pigsty 255.2 KiB postgresql-16-pg-command-fw_0.1.0-1PIGSTY~bookworm_amd64.deb
postgresql-16-pg-command-fw 0.1.0 d12.aarch64 pigsty 155.2 KiB postgresql-16-pg-command-fw_0.1.0-1PIGSTY~bookworm_arm64.deb
postgresql-16-pg-command-fw 0.1.0 d13.x86_64 pigsty 255.1 KiB postgresql-16-pg-command-fw_0.1.0-1PIGSTY~trixie_amd64.deb
postgresql-16-pg-command-fw 0.1.0 d13.aarch64 pigsty 155.2 KiB postgresql-16-pg-command-fw_0.1.0-1PIGSTY~trixie_arm64.deb
postgresql-16-pg-command-fw 0.1.0 u22.x86_64 pigsty 288.4 KiB postgresql-16-pg-command-fw_0.1.0-1PIGSTY~jammy_amd64.deb
postgresql-16-pg-command-fw 0.1.0 u22.aarch64 pigsty 179.7 KiB postgresql-16-pg-command-fw_0.1.0-1PIGSTY~jammy_arm64.deb
postgresql-16-pg-command-fw 0.1.0 u24.x86_64 pigsty 286.1 KiB postgresql-16-pg-command-fw_0.1.0-1PIGSTY~noble_amd64.deb
postgresql-16-pg-command-fw 0.1.0 u24.aarch64 pigsty 178.3 KiB postgresql-16-pg-command-fw_0.1.0-1PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pg_command_fw_15 0.1.0 el8.x86_64 pigsty 311.5 KiB pg_command_fw_15-0.1.0-1PIGSTY.el8.x86_64.rpm
pg_command_fw_15 0.1.0 el8.aarch64 pigsty 202.6 KiB pg_command_fw_15-0.1.0-1PIGSTY.el8.aarch64.rpm
pg_command_fw_15 0.1.0 el9.x86_64 pigsty 327.3 KiB pg_command_fw_15-0.1.0-1PIGSTY.el9.x86_64.rpm
pg_command_fw_15 0.1.0 el9.aarch64 pigsty 215.1 KiB pg_command_fw_15-0.1.0-1PIGSTY.el9.aarch64.rpm
pg_command_fw_15 0.1.0 el10.x86_64 pigsty 327.5 KiB pg_command_fw_15-0.1.0-1PIGSTY.el10.x86_64.rpm
pg_command_fw_15 0.1.0 el10.aarch64 pigsty 216.0 KiB pg_command_fw_15-0.1.0-1PIGSTY.el10.aarch64.rpm
postgresql-15-pg-command-fw 0.1.0 d12.x86_64 pigsty 254.2 KiB postgresql-15-pg-command-fw_0.1.0-1PIGSTY~bookworm_amd64.deb
postgresql-15-pg-command-fw 0.1.0 d12.aarch64 pigsty 153.8 KiB postgresql-15-pg-command-fw_0.1.0-1PIGSTY~bookworm_arm64.deb
postgresql-15-pg-command-fw 0.1.0 d13.x86_64 pigsty 254.2 KiB postgresql-15-pg-command-fw_0.1.0-1PIGSTY~trixie_amd64.deb
postgresql-15-pg-command-fw 0.1.0 d13.aarch64 pigsty 153.8 KiB postgresql-15-pg-command-fw_0.1.0-1PIGSTY~trixie_arm64.deb
postgresql-15-pg-command-fw 0.1.0 u22.x86_64 pigsty 287.0 KiB postgresql-15-pg-command-fw_0.1.0-1PIGSTY~jammy_amd64.deb
postgresql-15-pg-command-fw 0.1.0 u22.aarch64 pigsty 178.0 KiB postgresql-15-pg-command-fw_0.1.0-1PIGSTY~jammy_arm64.deb
postgresql-15-pg-command-fw 0.1.0 u24.x86_64 pigsty 284.1 KiB postgresql-15-pg-command-fw_0.1.0-1PIGSTY~noble_amd64.deb
postgresql-15-pg-command-fw 0.1.0 u24.aarch64 pigsty 176.3 KiB postgresql-15-pg-command-fw_0.1.0-1PIGSTY~noble_arm64.deb

Source

pig build pkg pg_command_fw;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install pg_command_fw;		# install via package name, for the active PG version

pig install pg_command_fw -v 18;   # install for PG 18
pig install pg_command_fw -v 17;   # install for PG 17
pig install pg_command_fw -v 16;   # install for PG 16
pig install pg_command_fw -v 15;   # install for PG 15

Config this extension to shared_preload_libraries:

shared_preload_libraries = 'pg_command_fw';

Create this extension with:

CREATE EXTENSION pg_command_fw;
Last updated on