Re: [PORTS] Port Bug Report: Can't create indicies on type "timestamp"

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: Nathan Parker <nparker(at)pobox(dot)com>
Cc: pgsql-ports(at)postgreSQL(dot)org
Subject: Re: [PORTS] Port Bug Report: Can't create indicies on type "timestamp"
Date: 1999-06-30 13:48:59
Message-ID: 377A204B.D1E96B89@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

> Summary: Can't create indicies on type "timestamp"
> Problem Description:
> --------------------
> Whenever I try to create an index that includes a "timestamp"
> field, I get this error:
> ERROR: Can't find a default operator class for type 1296.
> This prevents me from using the timestamp type altogether.
> Big bummer. I like PostgreSQL, but I'm thinking of
> switching to Sybase's free Linux server.

*shrug* Go fer it dude! But you might want to RTFM before switching ;)

> foo=> create table foo1 (ts timestamp);
> CREATE
> foo=> create index foo1_idx on foo1 (ts);
> ERROR: Can't find a default operator class for type 1296.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The current timestamp type is *not* well supported. You should be
using the "datetime" type, which will become the "timestamp" type
sometime soon. In fact, it should probably happen for the next
release. I'd been waiting for a *major* release to make this switch,
but it doesn't seem worth the wait.

Check the chapter on "Data Types" in the User's Guide for pointers on
the date/time types.

Good luck.

- Thomas

--
Thomas Lockhart lockhart(at)alumni(dot)caltech(dot)edu
South Pasadena, California

In response to

Browse pgsql-ports by date

  From Date Subject
Next Message Herouth Maoz 1999-06-30 14:19:28 Re: [PORTS] Port Bug Report: parse error not detected on unterminated quote
Previous Message Thomas Lockhart 1999-06-30 13:31:51 Re: [PORTS] Port Bug Report: parse error not detected on unterminated quote