From: Romualdo Alves <romualdo@crn.inpe.br>
To: pgsql-sql@postgresql.org
Subject: Indexing Timestamp Data
Date: Fri, 15 May 1998 17:07:35 +0100
Message-ID: <3.0.5.32.19980515170735.0092e490@jerimum.crn.inpe.br> (raw)
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: romualdo@crn.inpe.br
Subject: Re: Indexing Timestamp Data
In-Reply-To: <3.0.5.32.19980515170735.0092e490@jerimum.crn.inpe.br>
References: <3.0.5.32.19980515170735.0092e490@jerimum.crn.inpe.br>
* 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