X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B7EC8D1B174 for ; Mon, 28 Jun 2004 14:41:58 -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 12974-01 for ; Mon, 28 Jun 2004 17:41:54 +0000 (GMT) Received: from smtp.wp.pl (smtp.wp.pl [212.77.101.160]) by svr1.postgresql.org (Postfix) with ESMTP id 4B48DD1B28B for ; Mon, 28 Jun 2004 14:41:51 -0300 (ADT) Received: (wp-smtpd mta-1 723 invoked from network); 28 Jun 2004 19:41:50 +0200 Received: from cnn2.neoplus.adsl.tpnet.pl (HELO wp.pl) (jim.jim@[83.31.167.2]) (envelope-sender ) by mta-1 (wp-smtpd) with SMTP for ; 28 Jun 2004 19:41:50 +0200 Message-ID: <40E058E3.5060608@wp.pl> Date: Mon, 28 Jun 2004 19:44:03 +0200 From: Jim User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; pl-PL; rv:1.6) Gecko/20040113 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: SQL stupid query plan... terrible performance ! References: <40DF684D.9060207@wp.pl> <16908.1088393386@sss.pgh.pa.us> <40DFACD5345.1020KG@129.180.47.120> <18211.1088401723@sss.pgh.pa.us> In-Reply-To: <18211.1088401723@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-AntiVirus: skaner antywirusowy poczty Wirtualnej Polski S. A. [wersja 2.0c] X-WP-AntySpam-Rezultat: NIE-SPAM X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/277 X-Sequence-Number: 7335 2004-06-28 07:48, Tom Lane wrote: >Klint Gore writes: >> On Sun, 27 Jun 2004 23:29:46 -0400, Tom Lane wrote: >>> [yawn...] Cast the constants to bigint. See previous discussions. > > [cuuuut] Thanks a lot guys. The term "Cast the constants to bigint" It is what I was looking for. I add explicitly ::data_type in my queries and everything works fine now. One more thanks to Tom Lane - After your answer I found your post on the newsgroup about this problem... the date of the post is 2001 year... You are really patience man.... :) But I really have no idea what term I could use to force goggle to give me solution ;) Greetings, Jim J.