Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id DE19B9FB7A9 for ; Fri, 2 Mar 2007 20:49:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 56644-02 for ; Fri, 2 Mar 2007 20:49:03 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by postgresql.org (Postfix) with ESMTP id C04E79FB3FF for ; Fri, 2 Mar 2007 20:49:07 -0400 (AST) X-EthosMedia-Virus-Scanned: no infections found Received: from [64.81.245.111] (account josh@agliodbs.com HELO [192.168.1.27]) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 11561921; Fri, 02 Mar 2007 16:53:07 -0800 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org Subject: Re: Performance Query Date: Fri, 2 Mar 2007 16:52:22 -0800 User-Agent: KMail/1.8 Cc: Abu Mushayeed References: <906038.13110.qm@web57107.mail.re3.yahoo.com> In-Reply-To: <906038.13110.qm@web57107.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703021652.22785.josh@agliodbs.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/76 X-Sequence-Number: 23481 Abu, > I really do not know how to find out what the query is waiting on, > unlike oracle db provides some of the information through its dynamic > performance views. Yeah, we don't have that yet. > Please help in understanding how I can find out what the system is > waiting for or why is it taking the query so long. First guess would be I/O bound. The planner, at least, thinks you're inserting 2 million records. What kind of disk support do you have? -- --Josh Josh Berkus PostgreSQL @ Sun San Francisco