Re: [SQL] Best way to delete time stamped data?

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: [SQL] Best way to delete time stamped data?
Дата
Msg-id 20030504113029.W66185@flake.decibel.org
обсуждение исходный текст
Ответ на Re: [SQL] Best way to delete time stamped data?  (Kyle <kyle@ccidomain.com>)
Список pgsql-general
On Sun, May 04, 2003 at 09:09:05AM -0400, Kyle wrote:
> Josh,
>
> Thanks, even my boss can read the new statement:
>
> DELETE FROM ONLY richtable WHERE age(trxdate) > '90 days';

Just remember that that query won't use any index on trxdate, because
it has to calculate 'age(trxdate)' for every value in the table.
--
Jim C. Nasby (aka Decibel!)                    jim@nasby.net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"


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

Предыдущее
От: Kyle
Дата:
Сообщение: Re: [SQL] Best way to delete time stamped data?
Следующее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: [SQL] Best way to delete time stamped data?