| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Dustin Sallings <dustin+postgres(at)spy(dot)net> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: index on a box |
| Date: | 2001-06-21 21:21:43 |
| Message-ID: | 22738.993158503@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Dustin Sallings <dustin+postgres(at)spy(dot)net> writes:
> Around 11:08 on Jun 21, 2001, Tom Lane said:
> # If you say "SET enable_seqscan TO off", and repeat the EXPLAIN, do you
> # get an indexscan plan?
> Seq Scan on tmp (cost=100000000.00..100002500.84 rows=30434 width=92)
Drat.
> I'm not sure what you just said. :)
Never mind, it wouldn't work anyway.
The problem is that "point @ box" isn't an rtree-indexable operation.
You could use "box @ box" instead, where the lefthand box is a zero-area
box with all corners at the point of interest. Crufty, but unless you
want to go in and teach rtree about a new operator type...
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Thalis A. Kalfigopoulos | 2001-06-21 21:24:06 | Pl/pgsql function fails when false |
| Previous Message | Thalis A. Kalfigopoulos | 2001-06-21 21:08:36 | strange way to crash |