Re: Indexing timestamps

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: Andre Schubert <andre(dot)schubert(at)km3(dot)de>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Indexing timestamps
Date: 2002-06-06 17:41:52
Message-ID: 200206061041.52753.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Stephan,

> Unfortunately you can't do that in that sort of syntax. You'll
> need to create a function that returns the month and is marked
> as iscachable and use that function in the index creation and
> query.

Hmmm. I take it that NOW() is not ISCACHABLE, and that's Andre's indexing
problem? What would be the pitfall of creating an alternate version of
NOW() that ISCACHABLE?

--
-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Wei Weng 2002-06-06 20:17:27 Old documentation
Previous Message Ricardo Javier Aranibar León 2002-06-06 17:03:43 TWO PROBLEMS