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 380348B9E44 for ; Mon, 31 Jan 2005 17:48:19 +0000 (GMT) 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 19307-02 for ; Mon, 31 Jan 2005 17:48:06 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2551C8B9D1C for ; Mon, 31 Jan 2005 17:46:20 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j0VHkJjb020888; Mon, 31 Jan 2005 12:46:19 -0500 (EST) To: Bill Chandler Cc: pgsql-performance@postgresql.org Subject: Re: Performance degredation at client site In-reply-to: <20050131171918.20665.qmail@web51410.mail.yahoo.com> References: <20050131171918.20665.qmail@web51410.mail.yahoo.com> Comments: In-reply-to Bill Chandler message dated "Mon, 31 Jan 2005 09:19:18 -0800" Date: Mon, 31 Jan 2005 12:46:19 -0500 Message-ID: <20887.1107193579@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/633 X-Sequence-Number: 10323 Bill Chandler writes: > Update processes run continually throughout the day in > which rows are inserted but none deleted. What about row updates? > Even seemingly simple commands are taking forever. > For example: > select evt_id from event_tbl where evt_id=1; > takes over a minute to complete. Since evt_id is a bigint, you need to write that as select evt_id from event_tbl where evt_id=1::bigint; or various other locutions that have the same effect. What you have is a bigint-vs-int comparison, which is not indexable in releases before 8.0. The same problem is occurring in your other example. regards, tom lane