X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9B77D9DC846 for ; Mon, 13 Feb 2006 13:27:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72000-04 for ; Mon, 13 Feb 2006 13:27:47 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from outbound.internet-mail-service.net (outbound6.internet-mail-service.net [216.240.47.197]) by postgresql.org (Postfix) with ESMTP id 9C6589DC82D for ; Mon, 13 Feb 2006 13:27:45 -0400 (AST) Received: from idiom.com (idiom.com [216.240.32.1]) by outbound.internet-mail-service.net (Postfix) with ESMTP id 96C0C24000E for ; Mon, 13 Feb 2006 09:27:45 -0800 (PST) Received: from [192.168.1.109] (adsl-69-107-112-198.dsl.pltn13.pacbell.net [69.107.112.198]) by idiom.com (8.12.11/8.12.11) with ESMTP id k1DHRjqI066957 for ; Mon, 13 Feb 2006 09:27:45 -0800 (PST) (envelope-from bryce1@obviously.com) Message-ID: <43F0C189.2050501@obviously.com> Date: Mon, 13 Feb 2006 09:27:37 -0800 From: Bryce Nesbitt User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: Very slow updates when using IN syntax subselect References: <43ECFF0B.80905@obviously.com> <7972.1139672862@sss.pgh.pa.us> <43EE3F77.6020108@obviously.com> <200602112134.57572.peter_e@gmx.net> <744.1139704657@sss.pgh.pa.us> In-Reply-To: <744.1139704657@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.113 required=5 tests=[AWL=0.113] X-Spam-Score: 0.113 X-Spam-Level: X-Archive-Number: 200602/136 X-Sequence-Number: 24146 Tom Lane wrote: > Peter Eisentraut writes: > >> Bryce Nesbitt wrote: >> >>> They occur in finite time. That's good, thanks. But jeeze, can't >>> postgres figure this out for itself? >>> >> I'm sure you wouldn't appreciate it if PostgreSQL did a full table scan >> before each query to figure out the total size of the involved tables. >> > > It's also less than polite to complain about the behavior of > two-year-old releases, without making any effort to ascertain > whether more-current versions are smarter. > Sorry to offend. Are current versions smarter? The DB I was working with still had row counts of 1 after tens of thousands of records had been added. With new versions, must the DB still be VACUUMED, or is that a bit more automatic?