X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 931C2D1B470 for ; Fri, 5 Dec 2003 02:14:57 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 64493-09 for ; Thu, 4 Dec 2003 22:14:30 -0400 (AST) Received: from houston.familyhealth.com.au (fhnet.arach.net.au [203.22.197.21]) by svr1.postgresql.org (Postfix) with ESMTP id 6EF60D1B472 for ; Thu, 4 Dec 2003 22:14:25 -0400 (AST) Received: from familyhealth.com.au (work-40.internal [192.168.0.40]) by houston.familyhealth.com.au (8.12.9p1/8.12.9) with ESMTP id hB52E0oD057144; Fri, 5 Dec 2003 10:14:01 +0800 (WST) (envelope-from chriskl@familyhealth.com.au) Message-ID: <3FCFEA58.7090505@familyhealth.com.au> Date: Fri, 05 Dec 2003 10:15:52 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ivar Zarans Cc: pgsql-performance@postgresql.org Subject: Re: Slow UPADTE, compared to INSERT References: <20031204185751.GA15893@alcaron.ee> <200312042023.37050.dev@archonet.com> <20031204221312.GA18874@alcaron.ee> <200312042245.21899.dev@archonet.com> <20031205014514.GA21079@alcaron.ee> <20031205020728.GA21440@alcaron.ee> In-Reply-To: <20031205020728.GA21440@alcaron.ee> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/115 X-Sequence-Number: 4975 > Why first example, where recid is given as numeric constant, is using > sequential scan, but second example, where recid is given as string > constant works with index scan, as expected? Third example shows, that > numeric constant must be typecasted in order to function properly. > > Is this normal behaviour of fields with bigint type? Yes, it's a known performance problem in PostgreSQL 7.4 and below. I believe it's been fixed in 7.5 CVS already. Chris