X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 86F4952AA3 for ; Tue, 16 Aug 2005 01:54:18 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 49024-09 for ; Tue, 16 Aug 2005 04:54:16 +0000 (GMT) Received: from hub.org (hub.org [200.46.204.220]) by svr1.postgresql.org (Postfix) with ESMTP id ABB0C5295A for ; Tue, 16 Aug 2005 01:54:16 -0300 (ADT) Received: from localhost (unknown [200.46.204.144]) by hub.org (Postfix) with ESMTP id 83AF8A248B2 for ; Tue, 16 Aug 2005 01:54:16 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53149-03 for ; Tue, 16 Aug 2005 04:54:13 +0000 (GMT) Received: from ganymede.hub.org (blk-222-82-85.eastlink.ca [24.222.82.85]) by hub.org (Postfix) with ESMTP id E573FA248AF for ; Tue, 16 Aug 2005 01:54:12 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1000) id C967035367; Tue, 16 Aug 2005 01:54:13 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id C4952345F6 for ; Tue, 16 Aug 2005 01:54:13 -0300 (ADT) Date: Tue, 16 Aug 2005 01:54:13 -0300 (ADT) From: "Marc G. Fournier" X-X-Sender: scrappy@ganymede.hub.org To: pgsql-sql@postgresql.org Subject: ARRAYs and INDEXes ... Message-ID: <20050816014906.G1002@ganymede.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.246 required=5 tests=[AWL=0.196, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/111 X-Sequence-Number: 22339 Can't seem to find anything concerning this in the docs, and I don't think it is something that can be done, but figure I'll double check before I write it off completely ... If I create a table: CREATE TABLE customers ( customer_id SERIAL, monthly_balance DECIMAL(7,2)[12] ); Is it possible to create an INDEX on customers.monthly_balance such that I could do something like: SELECT * FROM customers WHERE monthly_balance[6] = 0.00; As an example ... or SELECT * FROM customers WHERE 0.00 = any (monthly_balance); ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664