pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Forest Wilkinson <fspam@home.com>
To: pgsql-sql@postgresql.org
Subject: how to index a numeric(12,2) column?
Date: Tue, 07 Nov 2000 14:57:59 -0800
Message-ID: <h22h0tcl0au01o1c0oed7dinlc7n8kqasj@4ax.com> (raw)

I'd like to create an index on a column whose type is NUMERIC(12,2).
There appears to be no default operator class for the numeric type.  What
class should I use instead?  My guess is that something like this might
work:

CREATE INDEX foo_idx on foo (bar int8_ops);

Will that work properly?  Will it do me any good?  Is there a better way?





view thread (4+ messages)  latest in thread

Message-ID: <h22h0tcl0au01o1c0oed7dinlc7n8kqasj@4ax.com>
Permalink:  ../h22h0tcl0au01o1c0oed7dinlc7n8kqasj@4ax.com/
Also on:    postgresql.org/message-id/h22h0tcl0au01o1c0oed7dinlc7n8kqasj@4ax.com

 · 

reply

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: fspam@home.com
  Subject: Re: how to index a numeric(12,2) column?
  In-Reply-To: <h22h0tcl0au01o1c0oed7dinlc7n8kqasj@4ax.com>
  References: <h22h0tcl0au01o1c0oed7dinlc7n8kqasj@4ax.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