Missing DATE selectivity

Started by Simon Riggsabout 20 years ago5 messages
#1Simon Riggs
simon@2ndquadrant.com

The TODO list has an item "add missing date selectivity", which is a
hang-over from 1999 or before.

Is this still an issue? Can somebody describe exactly what it is?

I can't find the exact discussion of what the problem was/is, so its
better to ask directly...

Best Regards, Simon Riggs

#2Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Simon Riggs (#1)
Re: Missing DATE selectivity

Simon Riggs wrote:

The TODO list has an item "add missing date selectivity", which is a
hang-over from 1999 or before.

Is this still an issue? Can somebody describe exactly what it is?

I can't find the exact discussion of what the problem was/is, so its
better to ask directly...

Good question. I see DATEOID in selfuncs.c, so my guess is that at one
time we didn't have it, but now we do, and I never realized it. I have
removed the mention and updated the entry to:

* Add missing rtree optimizer selectivity

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#3Simon Riggs
simon@2ndquadrant.com
In reply to: Bruce Momjian (#2)
Re: Missing DATE selectivity

On Tue, 2005-12-27 at 23:00 -0500, Bruce Momjian wrote:

Simon Riggs wrote:

The TODO list has an item "add missing date selectivity", which is a
hang-over from 1999 or before.

Is this still an issue? Can somebody describe exactly what it is?

I can't find the exact discussion of what the problem was/is, so its
better to ask directly...

Good question. I see DATEOID in selfuncs.c, so my guess is that at one
time we didn't have it, but now we do, and I never realized it. I have
removed the mention and updated the entry to:

* Add missing rtree optimizer selectivity

I thought rtree was no longer supported either...

Best Regards, Simon Riggs

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Simon Riggs (#3)
Re: Missing DATE selectivity

Simon Riggs <simon@2ndquadrant.com> writes:

On Tue, 2005-12-27 at 23:00 -0500, Bruce Momjian wrote:

* Add missing rtree optimizer selectivity

I thought rtree was no longer supported either...

We still have rtree-like opclasses. I agree the TODO item is worded
in a way that makes it look obsolete though. How about

* Improve selectivity functions for geometric operators

regards, tom lane

#5Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Tom Lane (#4)
Re: Missing DATE selectivity

Tom Lane wrote:

Simon Riggs <simon@2ndquadrant.com> writes:

On Tue, 2005-12-27 at 23:00 -0500, Bruce Momjian wrote:

* Add missing rtree optimizer selectivity

I thought rtree was no longer supported either...

We still have rtree-like opclasses. I agree the TODO item is worded
in a way that makes it look obsolete though. How about

* Improve selectivity functions for geometric operators

Thanks, updated.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073