Alarm function in PL/pgSQL

Поиск
Список
Период
Сортировка
От Jon Smark
Тема Alarm function in PL/pgSQL
Дата
Msg-id 1311025139.73351.YahooMailClassic@web112801.mail.gq1.yahoo.com
обсуждение исходный текст
Ответы Re: Alarm function in PL/pgSQL  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-general
Hi,

Is it possible to set an alarm within a PL/pgSQL function?  By "alarm"
I mean a function which is invoked some defined time in the future,
even after the original function has terminated and returned a value
to the client.

I want an invocation of function FOO to set a "state" column of a given
table row to "temporary".  After a predefined period (say, one hour),
function BAR should then automatically be invoked; this latter function
would among other things change the "state" column to "permanent".

Thanks in advance!
Jon


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Documentation issue
Следующее
От: John R Pierce
Дата:
Сообщение: Re: pg_upgrade does not translate tablespace location to new cluster