"Fernando Papa" <fpapa@claxson.com> writes:
> In server's logfile I found this:
> 2002-10-16 11:53:25 ERROR: tuplestore: write failed
> I run again the query an I get the same error.
> I check the disk space... everithing ok.
Disk space overrun would certainly be the most probable explanation.
Checking free space *after* the failure proves nothing at all, because
the temp files would have been released on failure. You might try
running "df" at frequent intervals while the query is running to confirm
my guess that it's exhausting disk space.
As for *why* it's exhausting disk space, maybe you are doing an
unconstrained join between two large tables? It's hard to guess when
you did not show us the failing query nor the schemas for the tables
it uses.
regards, tom lane