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 5EA6E9DC94D for ; Sat, 11 Feb 2006 16:35:01 -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 91162-09 for ; Sat, 11 Feb 2006 16:35:02 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by postgresql.org (Postfix) with SMTP id C63849DC8DF for ; Sat, 11 Feb 2006 16:34:57 -0400 (AST) Received: (qmail invoked by alias); 11 Feb 2006 20:34:59 -0000 Received: from dslb-084-063-061-199.pools.arcor-ip.net (EHLO colt.pezone.net) [84.63.61.199] by mail.gmx.net (mp039) with SMTP; 11 Feb 2006 21:34:59 +0100 X-Authenticated: #495269 From: Peter Eisentraut To: pgsql-sql@postgresql.org Subject: Re: Very slow updates when using IN syntax subselect Date: Sat, 11 Feb 2006 21:34:57 +0100 User-Agent: KMail/1.8.3 Cc: Bryce Nesbitt References: <43ECFF0B.80905@obviously.com> <7972.1139672862@sss.pgh.pa.us> <43EE3F77.6020108@obviously.com> In-Reply-To: <43EE3F77.6020108@obviously.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602112134.57572.peter_e@gmx.net> X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.123 required=5 tests=[AWL=0.123] X-Spam-Score: 0.123 X-Spam-Level: X-Archive-Number: 200602/125 X-Sequence-Number: 24135 Bryce Nesbitt wrote: > > It seems pretty clear that you've never vacuumed nor analyzed these > > tables ... else the planner would have some clue about their sizes. > > Do that and then see what you get. > > They occur in fine 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. -- Peter Eisentraut http://developer.postgresql.org/~petere/