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 D29D952A2F for ; Wed, 20 Apr 2005 12:23:19 -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 34635-10 for ; Wed, 20 Apr 2005 15:23:11 +0000 (GMT) Received: from morework.geizhals.at (home.geizhals.at [213.229.14.34]) by svr1.postgresql.org (Postfix) with ESMTP id 2E99A529E1 for ; Wed, 20 Apr 2005 12:23:10 -0300 (ADT) Received: from localhost (morework [127.0.0.1]) by morework.geizhals.at (Postfix) with ESMTP id CA1F5DEEAE for ; Wed, 20 Apr 2005 17:23:07 +0200 (CEST) Received: from [172.16.42.114] (unknown [172.16.42.114]) by morework.geizhals.at (Postfix) with ESMTP for ; Wed, 20 Apr 2005 17:23:07 +0200 (CEST) Message-ID: <426673DA.2020203@geizhals.at> Date: Wed, 20 Apr 2005 17:23:06 +0200 From: Marinos Yannikos User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Odd error message (" hash indexes do not support whole-index scans") Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 at geizhals.at X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/303 X-Sequence-Number: 21196 Shouldn't PostgreSQL behave in a different way in this case? (e.g. just not use the index): Table "public.forum_messages" message_id | integer | not null default nextval('forum_messages_message_id_seq'::text) parent_userid | integer | supersededby | integer | default 0 "forum_messages_pkey" primary key, btree (message_id) "idx_supersede" hash (supersededby) WHERE (supersededby > 0) # select m1.message_id,m2.message_id,m1.parent_userid,m2.parent_userid from forum_messages m1, forum_messages m2 where m2.supersededby=m1.message_id and m2.supersededby>0; ERROR: hash indexes do not support whole-index scans Regards, Marinos