Re: PSQLException: ERROR: could not write to hash-join temporary file: No space left on device

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Calvin Kim <calvinkhkim(at)gmail(dot)com>
Cc: Stephen Froehlich <s(dot)froehlich(at)cablelabs(dot)com>, "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org>
Subject: Re: PSQLException: ERROR: could not write to hash-join temporary file: No space left on device
Date: 2019-11-13 14:43:35
Message-ID: 4961.1573656215@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Calvin Kim <calvinkhkim(at)gmail(dot)com> writes:
> What is strange for me is that I don't see any files in /base/pgsql_tmp and
> that temp_tablespaces is not set in postgresql.conf.
> I know that temp files supposed to be removed after process is completed,
> but not sure why I'm seeing such a huge numbers in pg_stat_database. Would
> there be any maintenance job that clears this?

Temp files get cleared as part of end-of-query cleanup, there's no
separate maintenance job for that. So you'd only see them in the
filesystem if you looked while the query was running.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Heckler, Kim M 2019-11-14 19:36:50 Dump and load
Previous Message Calvin Kim 2019-11-13 02:42:11 Re: PSQLException: ERROR: could not write to hash-join temporary file: No space left on device