From: Josh Berkus <josh@agliodbs.com>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: Andre Schubert <andre.schubert@km3.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Indexing timestamps
Date: Thu, 6 Jun 2002 10:41:52 -0700
Message-ID: <200206061041.52753.josh@agliodbs.com> (raw)
In-Reply-To: <20020606095611.A27330-100000@megazone23.bigpanda.com>
References: <20020606095611.A27330-100000@megazone23.bigpanda.com>
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@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, sszabo@megazone23.bigpanda.com, andre.schubert@km3.de
Subject: Re: Indexing timestamps
In-Reply-To: <200206061041.52753.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox