From: Jackson, DeJuan <djackson@cpsgroup.com>
To: Romualdo Alves <romualdo@crn.inpe.br>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] Indexing Timestamp Data
Date: Fri, 15 May 1998 15:34:18 -0500
Message-ID: <F10BB1FAF801D111829B0060971D839F28AC9E@dal_cps.cpsgroup.com> (raw)
Just as a suggestion you might want to use DATETIME instead of
TIMESTAMP.
> How to index a timestamp data in a Postgres table?
>
> For example, I tried: CREATE UNIQUE INDEX idx ON table_01
> (xtime);
> The resulting message was: "CAN'T FIND A DEFAULT OPERATOR CLASS FOR
> TYPE
> 1296".
>
> The table 'table_01' was created with the following command:
> CREATE TABLE table_01 (
> xtime TIMESTAMP,
> code CHAR(5),
> qty INTEGER);
>
> The key of this table must be the 'xtime' field which is of
> TIMESTAMP data
> type. How to do it?
>
>
> Romualdo.
>
>
> ------------------------------------------------------------
> My ICQ# 10480879
> My Home Page: http://wwp.mirabilis.com/10480879
> My E-mail Express: 10480879@pager.mirabilis.com
> INPE Telephone Number: (084) 231-4733 Ext. 214
>
> "For we are labourers together with God" (1 Corinthians 3:9)
> "De Deus somos cooperadores" (1 Corintios 3:9)
> ------------------------------------------------------------
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: djackson@cpsgroup.com, romualdo@crn.inpe.br
Subject: Re: [SQL] Indexing Timestamp Data
In-Reply-To: <F10BB1FAF801D111829B0060971D839F28AC9E@dal_cps.cpsgroup.com>
References: <F10BB1FAF801D111829B0060971D839F28AC9E@dal_cps.cpsgroup.com>
* 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