Skip to content
Trigger shell command from NOTIFY
Branch: master
Clone or download
Latest commit 9a401c7 Jan 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
Makefile BSD make compatibility Mar 9, 2018
README.md Add default.nix Jan 2, 2019
default.nix
pg_listen.c Mark noreturn functions as such Mar 10, 2018

README.md

pg_listen: trigger a shell command on a Postgres event

Super fast and lightweight. Written in C using libpq.

Usage

pg_listen postgres://db-uri channel-name shell-command

# for example
# pg_listen postgres://localhost/postgres hello "echo they said hi"

Building

Just clone the repo and run make. The makefile is compatible with BSD and GNU Make and requires only that libpq be installed on the system.

If you use NixOS you can run nix-shell to build it.

You can’t perform that action at this time.