Re: Shell access & send email from PLPGSQL?

Поиск
Список
Период
Сортировка
От John Sidney-Woollett
Тема Re: Shell access & send email from PLPGSQL?
Дата
Msg-id 2257.192.168.0.64.1070964997.squirrel@mercury.wardbrook.com
обсуждение исходный текст
Ответ на Shell access & send email from PLPGSQL?  ("Philippe Lang" <philippe.lang@attiksystem.ch>)
Список pgsql-general
Why not create a cron script which connects to the database and queries
your tables (using psql). Have it generate an output (shell) script which
your original script then calls.

Unfortunately I know how to do this with Oracle, but not postgres *yet*,
but I suspect that in principle this idea will work.

Maybe someone else has an example, or a better suggestion.

John Sidney-Woollett


 Philippe Lang said:
> Hello,
>
> How can open a unix shell from a PLPGSQL function / trigger?
>
> I would like to send an email from a postgres database, and also send some
> unix commands to the server, through the database...
>
> Thanks
>
> -------------------------
> Philippe Lang
> Attik System
> http://www.attiksystem.ch
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>


В списке pgsql-general по дате отправления:

Предыдущее
От: "Philippe Lang"
Дата:
Сообщение: Shell access & send email from PLPGSQL?
Следующее
От: "Gellert, Andre"
Дата:
Сообщение: Reset oid , starting value=1