Re: Indexing timestamps - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Indexing timestamps
Date
Msg-id 200206061041.52753.josh@agliodbs.com
Whole thread Raw
In response to Re: Indexing timestamps  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Responses Re: Indexing timestamps  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List 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
informationtechnology     josh@agliodbs.com   and data management solutions     (415) 565-7293  for law firms, small
businesses     fax 621-2533   and non-profit organizations.     San Francisco 



pgsql-sql by date:

Previous
From: "Ricardo Javier Aranibar León"
Date:
Subject: TWO PROBLEMS
Next
From: Wei Weng
Date:
Subject: Old documentation