i'm not sure if is the right answer to your question anyway from psql prompt you can call a shell command by \! <cmd> andrea ps I apologise my terrible english.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных