Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjBMx-0008L4-Up for pgsql-performance@arkaria.postgresql.org; Thu, 13 Dec 2012 16:10:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TjBMx-0001rd-Dm for pgsql-performance@arkaria.postgresql.org; Thu, 13 Dec 2012 16:10:43 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjBMw-0001qg-0F for pgsql-performance@postgresql.org; Thu, 13 Dec 2012 16:10:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjBMt-0000Nq-Jp for pgsql-performance@postgresql.org; Thu, 13 Dec 2012 16:10:41 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qBDGAca6005811; Thu, 13 Dec 2012 11:10:38 -0500 (EST) From: Tom Lane To: Lutz Fischer cc: pgsql-performance@postgresql.org Subject: Re: problem with large inserts In-reply-to: <50C9F63D.5040400@staffmail.ed.ac.uk> References: <50C9F63D.5040400@staffmail.ed.ac.uk> Comments: In-reply-to Lutz Fischer message dated "Thu, 13 Dec 2012 15:37:33 +0000" Date: Thu, 13 Dec 2012 11:10:38 -0500 Message-ID: <5810.1355415038@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Lutz Fischer writes: > I have currently some trouble with inserts into a table > If I run only [ the select part ] > it returns 200620 rows in 170649 ms ( thats just under 3 minutes). I > stopped the actual insert after about 8h. It should not take 8h to insert 200k rows on any machine made this century. Frankly, I'm wondering if the insert is doing anything at all, or is blocked on a lock somewhere. You say there's no concurrent activity, but how hard did you look? Did you check that, say, the physical disk file for the table is growing? > I am running postgresql 9.2 on a windows 2008 R2 server with 256 GB and > the database is on something like a raid 1+0 (actually a raid1e) > consisting of 3x4TB disks (limit of what could easily be fitted into the > server). A different line of thought is that there's something seriously broken about the raid configuration. Have you tried basic disk-speed benchmarks? (Perhaps there's an equivalent of bonnie++ for windows.) regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance