pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ligia M. Pimentel <lmpc@nettaxi.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Re: ltsWriteBlock: failed to write block XX of temporary file. Perharps out of disk space...
Date: Thu, 18 Jan 2001 16:46:10 -0500
Message-ID: <5350.979854370@sss.pgh.pa.us> (raw)
In-Reply-To: <944mvl$11qo$1@news.tht.net>
References: <944kbb$114p$1@news.tht.net>
	<944mvl$11qo$1@news.tht.net>

"Ligia M. Pimentel" <lmpc@nettaxi.com> writes:
>> I have a database and a table with 70000 records (which i dont think it's
>> too much)
>> I join this table with another of about the same size and put a record
>> restriction (WHERE) and everything works out fine, but when I put two SUMs
>> over a couple of fields and add a GROUP BY

What plan does EXPLAIN show for this query?  I suspect that you are
causing it to sort a huge intermediate result, possibly because of
insufficiently tight WHERE restrictions.

>>  I keep getting this error,
>> 
>> ltsWriteBlock: failed to write block 27231 of temporary file
>> Perhaps out of disk space?
>> 
>> I checked and I have over 1GB free so I figure this must have something to
>> do with configuration parameters.

Well, that temp file alone is 27231*8K = 212meg, and it might be using
several.  So running out of disk space is not out of the question.  Did
you watch free space with df while the query was running?

			regards, tom lane



view thread (3+ messages)

Message-ID: <5350.979854370@sss.pgh.pa.us>
Permalink:  ../5350.979854370@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5350.979854370@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, lmpc@nettaxi.com
  Subject: Re: ltsWriteBlock: failed to write block XX of temporary file. Perharps out of disk space...
  In-Reply-To: <5350.979854370@sss.pgh.pa.us>
  References: <944kbb$114p$1@news.tht.net> <944mvl$11qo$1@news.tht.net> <5350.979854370@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox