Received: from femail1.sdc1.sfba.home.com (femail1.sdc1.sfba.home.com [24.0.95.81]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eA7Mw3s98306 for ; Tue, 7 Nov 2000 17:58:03 -0500 (EST) (envelope-from fspam@home.com) Received: from tajar ([24.1.6.224]) by femail1.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20001107225718.PVPV2380.femail1.sdc1.sfba.home.com@tajar> for ; Tue, 7 Nov 2000 14:57:18 -0800 From: Forest Wilkinson 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: X-Mailer: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200011/53 X-Sequence-Number: 84 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?