Re: Including Snapshot Info with Indexes - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Including Snapshot Info with Indexes
Date
Msg-id 878x6cemb9.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: Including Snapshot Info with Indexes  ("Gokulakannan Somasundaram" <gokul007@gmail.com>)
List pgsql-hackers
"Gokulakannan Somasundaram" <gokul007@gmail.com> writes:

> On 10/9/07, Gokulakannan Somasundaram <gokul007@gmail.com> wrote:
>
>> A function is said to be deterministic, if it returns the same value,
>> irrespective of how many times, it is invoked. I think this definition
>> clearly puts the random function under the non-deterministic category. If we
>> have such a classification, do you think we can resolve this issue?
>
> If we frame a set of guidelines/test procedure, do you think it might solve
> the issue? Even, if we don't allow this type of indexing to anything other
> than built-in deterministic functions, i feel it would serve most of the
> indexing requirements.

We already do this. c.f. IMMUTABLE at

http://www.postgresql.org/docs/8.2/interactive/xfunc-volatility.html

and

http://www.postgresql.org/docs/8.2/interactive/sql-createindex.html


--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: Latest ecpg patch broke MSVC build
Next
From: Magnus Hagander
Date:
Subject: Re: Latest ecpg patch broke MSVC build