pg_crash
Send random signals to random processes
pg_crash : Send random signals to random processes
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 5210 | pg_crash | pg_crash | 0.3 |
ADMIN | BSD-3-Clause | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sLd-r | No | Yes | Yes | Yes | yes | no |
| Relationships | |
|---|---|
| See Also | pg_dirtyread pg_savior pg_cheat_funcs |
Module-only; Pigsty DDL shim.
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| el8.aarch64 | N/A | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| el9.x86_64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| el9.aarch64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| el10.x86_64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| el10.aarch64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| d12.x86_64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| d12.aarch64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| d13.x86_64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| d13.aarch64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| u22.x86_64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| u22.aarch64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| u24.x86_64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| u24.aarch64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| u26.x86_64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
| u26.aarch64 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 | PIGSTY 0.3 |
Source
github.com/cybertec-postgresql/pg_crash
pg_crash-0.3.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
Create this extension with:
Usage
pg_crash is a chaos engineering extension that periodically sends kill signals to PostgreSQL backend processes, useful for HA and failover testing. It must be added to shared_preload_libraries.
Configuration
Add to postgresql.conf:
Signal Reference
Common POSIX signals: 1 (SIGHUP), 2 (SIGINT), 3 (SIGQUIT), 9 (SIGKILL), 15 (SIGTERM).
After configuring, restart the server. The background worker will periodically send the configured signals to random backend processes at the specified interval.