Is there some mechanism in postgres that can fire off a shell script when a database record is written? I can write a script to just monitor the database and table but before doing that I wanted to make sure there wasn't a "better" way.
2 Answers
You can probably use rule or trigger and start your shell script for whatever PL that supports it, but I think the better way is to use it for sending notification and monitor it from a separate process.
1 Comment
Mike Sherrill 'Cat Recall'
Yeah, one shell script per row just doesn't sound like a good idea.