From: Tom Lane <tgl@sss.pgh.pa.us>
To: Itai Zukerman <zukerman@math-hat.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: GiST, Not Using Index
Date: Thu, 27 Feb 2003 17:38:43 -0500
Message-ID: <29842.1046385523@sss.pgh.pa.us> (raw)
In-Reply-To: <871y1ttoh4.fsf@pip.dynamiclogic.com>
References: <87bs0z1zzs.fsf@matt.w80.math-hat.com>
<87lm03ghpo.fsf@matt.w80.math-hat.com>
<87adghtt0h.fsf_-_@pip.dynamiclogic.com>
<27896.1046379102@sss.pgh.pa.us>
<871y1ttoh4.fsf@pip.dynamiclogic.com>
Itai Zukerman <zukerman@math-hat.com> writes:
>> Never leave out the "unimportant" stuff --- that's usually where you
>> went wrong ;-)
> OK, I've attached below the SQL I use to generate stuff and an
> interactive session with the "explain" etc.
Ah. Your problem is you need to mark sig_in() as IMMUTABLE, or at least
STABLE, for an expression involving sig_in() to be considered safe to
index. If it's in C, more than likely it'd best be marked STRICT too
(else you'd better have explicit NULL checks in the function code).
Don't forget to look at your other custom functions too, to see if
they're correctly marked.
regards, tom lane
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: tgl@sss.pgh.pa.us, zukerman@math-hat.com
Subject: Re: GiST, Not Using Index
In-Reply-To: <29842.1046385523@sss.pgh.pa.us>
* 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