52

GitHub - begriffs/pg_listen: Trigger shell command from NOTIFY

 6 years ago
source link: https://github.com/begriffs/pg_listen
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK