Expiration date. - Mailing list pgsql-general

From Michal A. Kowalski
Subject Expiration date.
Date
Msg-id 37EE1219.56830D15@minfo.com.pl
Whole thread Raw
Responses Re: [GENERAL] Expiration date.
List 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 by date:

Previous
From: "Andrew Higgs"
Date:
Subject: Cannot connect.
Next
From: "Tim Joyce"
Date:
Subject: FATAL 1: Memory exhausted in AllocSetAlloc()