X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 423D89FB2BB for ; Wed, 20 Sep 2006 19:33:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 66610-05-3 for ; Wed, 20 Sep 2006 19:32:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 9664A9FA50F for ; Wed, 20 Sep 2006 19:31:50 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k8KMVkkK020067; Wed, 20 Sep 2006 18:31:46 -0400 (EDT) To: "TJ O'Donnell" cc: pgsql-sql@postgresql.org Subject: Re: ERROR: could not write block 196261 of temporary file: No space left In-reply-to: <4511BA00.6070001@acm.org> References: <4511BA00.6070001@acm.org> Comments: In-reply-to "TJ O'Donnell" message dated "Wed, 20 Sep 2006 15:00:32 -0700" Date: Wed, 20 Sep 2006 18:31:46 -0400 Message-ID: <20066.1158791506@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.101 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/143 X-Sequence-Number: 26354 "TJ O'Donnell" writes: > ERROR: could not write block 196261 of temporary file: No space left > on device > I can't tell if this was because I ran out of real disk space, > or because of some disk space limit set in pg config files. There is no "disk space limit in pg config files". Depending on your platform, that error could represent a per-user disk quota limit being enforced against the postmaster rather than genuine disk-full, but whatever the limit was it's at the OS level not Postgres. > I also can't tell if the error came from the Copy or the Insert. Since it says "temporary file", it's not talking about insertion of data into a real table (even a temporary one). It's talking about genuinely temporary intra-query workspace. I'd venture that the error comes from the SELECT DISTINCT step trying to write a sort temp file that there's not room for. (The fact that you see UPDATE 0 right after that is further evidence for this theory --- after the failure, there's nothing in fragment_table, so the UPDATE just falls through.) regards, tom lane