Re: Weird error updating table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brendan Duddridge <brendan(at)clickspace(dot)com>
Cc: PostgreSQL-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Weird error updating table
Date: 2006-04-18 19:21:10
Message-ID: 17975.1145388070@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Brendan Duddridge <brendan(at)clickspace(dot)com> writes:
> Next exception:SQL State:XX000 -- error code: 0 -- msg: ERROR:
> could not read from hash-join temporary file: Unknown error: 0

> Any one know what that could mean?

It seems to imply unexpected end-of-file while reading from a temp file
... unless the kernel forgot to set errno during some other failure.
What platform is this on, exactly?

Looking at the code, it looks like BufFileClose is sloppy about checking
for errors (such as out-of-disk-space) while flushing out the very last
block of a temp file. Is it possible that your query just barely ran
the machine out of disk space?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-04-18 19:44:49 Re: Vacuuming of indexes on tables.
Previous Message elein 2006-04-18 19:13:24 Re: Vacuuming of indexes on tables.