No index support for date/time types?

From: Todd Vierling <tv(at)pobox(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: No index support for date/time types?
Date: 1999-11-07 19:43:10
Message-ID: Pine.NEB.4.10.9911071438190.22857-100000@server.int.duh.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I'm getting some strange errors when trying to use a btree (default) index
on any of timestamp, abstime, datetime, or reltime types. All fail with an
error:

(timestamp) ERROR: Can't find a default operator class for type 1296.
(abstime) ERROR: Cannot create index: attribute 11 does not exist
(reltime) ERROR: Can't find a default operator class for type 703.
(datetime) ERROR: Cannot create index: attribute 12 does not exist

...errors which, of course, mean nothing to me. 8-)

A simple case to reproduce the first ...

create table foo (bar timestamp);
create index baz on foo (bar);

--
-- Todd Vierling (tv(at)pobox(dot)com)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Todd Vierling 1999-11-07 20:05:56 Re: [BUGS] No index support for date/time types?
Previous Message Tom Lane 1999-11-05 06:20:46 Re: [BUGS] simple query triggers abnormal termination