Expiration date.

Поиск
Список
Период
Сортировка
От Michal A. Kowalski
Тема Expiration date.
Дата
Msg-id 37EE1219.56830D15@minfo.com.pl
обсуждение исходный текст
Ответы Re: [GENERAL] Expiration date.  (Howie <caffeine@toodarkpark.org>)
Список pgsql-general
Hi,

what is the easiest way to check if record in database has expired? I have
records with field CREATED - filled with datetime('now'::abstime) function -
and with field EXPIRE - filled with number of days for which this record
remain valid. Is there any way to add days in EXPIRE to CREATED in proper way
and chceck if this particular record should be deleted using functions
embedded in PgSQL or maybe I should do this outside Pg, maybe in Perl?

MAK.
___________________________________________________________________________
--  Michal A. Kowalski  --  http://www.minfo.com.pl -- mak@minfo.com.pl  --

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

Предыдущее
От: "Andrew Higgs"
Дата:
Сообщение: Cannot connect.
Следующее
От: "Tim Joyce"
Дата:
Сообщение: FATAL 1: Memory exhausted in AllocSetAlloc()