Re: Stored Procedures

Поиск
Список
Период
Сортировка
От Shridhar Daithankar
Тема Re: Stored Procedures
Дата
Msg-id 3DA1D42D.28638.103E060A@localhost
обсуждение исходный текст
Ответ на Stored Procedures  ("Tomá¹ Kubi¹" <kubis@vosji.cz>)
Список pgsql-general
On 7 Oct 2002 at 9:46, TomXX KubiX wrote:
>  I have some stored procedures written in Pl/PgSQL. I want to run them in
> specified time. I need something as Crontab. How can I do that?

Put following in crontab as command to execute

echo "select mystoredprocedure()" | psql dbname

Same can be done via shell redirection but I use this as well..

Tweak it for additional options..

 HTH

Bye
 Shridhar

--
Consent decree:    A document in which a hapless company consents never to commit
in the future whatever heinous violations of Federal law it    never admitted to
in the first place.


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

Предыдущее
От: Thomas O'Dowd
Дата:
Сообщение: why isn't index used?
Следующее
От: Christoph Dalitz
Дата:
Сообщение: Re: [pgsql-general] Daily Digest V1 #2480