Re: Partial Indices vs. mixing columns and functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: Mike Mascari <mascarm(at)mascari(dot)com>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Partial Indices vs. mixing columns and functions
Date: 2001-07-17 15:11:33
Message-ID: 24984.995382693@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp> writes:
> Both the functions used in functional indexes and the
> predicates used in partial indexes must be deterministic.
> Are users responsible for it ?
>>
>> Yes. I don't see how the system could enforce that, without
>> prohibiting lots of useful cases.

> Shouldn't the functions be *cacheable* at least ?

Hmm. We could do that, although of course it's not a bulletproof check.

Any objections out there?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fran Fabrizio 2001-07-17 15:13:46 Re: trouble with triggers
Previous Message Jose Manuel Lorenzo Lopez 2001-07-17 15:10:24 Re: How to find out the weekday from a date???