X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5FF85D8E25 for ; Mon, 7 Nov 2005 14:07:46 -0400 (AST) 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 94515-01 for ; Mon, 7 Nov 2005 18:07:41 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from metux.de (seven.metux.de [193.16.1.1]) by svr1.postgresql.org (Postfix) with ESMTP id 66A8DD8316 for ; Mon, 7 Nov 2005 14:07:40 -0400 (AST) Received: (from weigelt@localhost) by metux.de (8.12.10/8.12.10) id jA7I7ck7026690 for pgsql-performance@postgresql.org; Mon, 7 Nov 2005 19:07:38 +0100 Date: Mon, 7 Nov 2005 19:07:38 +0100 From: Enrico Weigelt To: pgsql-performance@postgresql.org Subject: Index + mismatching datatypes [WAS: index on custom function; explain] Message-ID: <20051107180738.GC15990@nibiru.local> Reply-To: weigelt@metux.de Mail-Followup-To: pgsql-performance@postgresql.org References: <1128352451.312090.37640@g44g2000cwa.googlegroups.com> <20051006081919.GA17081@zoom.spline.inf.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051006081919.GA17081@zoom.spline.inf.fu-berlin.de> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.004 required=5 tests=[AWL=0.004] X-Spam-Score: 0.004 X-Spam-Level: X-Archive-Number: 200511/122 X-Sequence-Number: 15379 * Yann Michel wrote: > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match I've got a similar problem: I have to match different datatypes, ie. bigint vs. integer vs. oid. Of course I tried to use casted index (aka ON (foo::oid)), but it didn't work. What am I doing wrong ? cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact@metux.de --------------------------------------------------------------------- Realtime Forex/Stock Exchange trading powered by postgreSQL :)) http://www.fxignal.net/ ---------------------------------------------------------------------