Skip to content

Instantly share code, notes, and snippets.

@stollcri
Created August 17, 2016 11:12
Show Gist options
  • Select an option

  • Save stollcri/cdb0df94d9bc01cdb940c33bc126e0a2 to your computer and use it in GitHub Desktop.

Select an option

Save stollcri/cdb0df94d9bc01cdb940c33bc126e0a2 to your computer and use it in GitHub Desktop.
Kick off a shell script from a SQL script
COPY (SELECT 1) TO PROGRAM '/var/lib/postgresql/scripts/do_sys_thing.sh';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment