Re: Best way to delete time stamped data?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
Cc: josh(at)agliodbs(dot)com, Kyle <kyle(at)ccidomain(dot)com>, Forum - PostGreSQL SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Best way to delete time stamped data?
Date: 2003-05-05 13:32:22
Message-ID: 20030505133222.GA2981@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

On Mon, May 05, 2003 at 15:26:21 +0530,
Rajesh Kumar Mallah <mallah(at)trade-india(dot)com> wrote:
>
>
> an index on age(date(trxdate)) would make it faster ?

That won't work because the value returned by age depends on the time
the transaction started. If you want the delete to be indexed you
need to write it out the longer way.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message greg 2003-05-05 14:32:55 Re: roman numerals
Previous Message Nigel J. Andrews 2003-05-05 11:41:39 Re: Database server restarting

Browse pgsql-sql by date

  From Date Subject
Next Message Rod Taylor 2003-05-05 13:33:05 Re: Indices are not used by the optimizer
Previous Message Reiner Dassing 2003-05-05 12:16:27 Indices are not used by the optimizer