From: Tom Lane <tgl@sss.pgh.pa.us>
To: Reid Thompson <Reid.Thompson@omnicell.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: could not read from hash-join temporary file: SUCCESS && DB goes into recovery mode
Date: Mon, 19 Apr 2021 09:53:51 -0400
Message-ID: <208065.1618840431@sss.pgh.pa.us> (raw)
In-Reply-To: <SJ0PR11MB484824AE16D5EF21DD539F579E499@SJ0PR11MB4848.namprd11.prod.outlook.com>
References: <SJ0PR11MB484824AE16D5EF21DD539F579E499@SJ0PR11MB4848.namprd11.prod.outlook.com>
Reid Thompson <Reid.Thompson@omnicell.com> writes:
> Hi I'm looking for some guidance related to the subject line issue.
Is this repeatable? If so you've found a bug, I think.
> 1. That the error message has been updated ( i.e. SUCCESS is not the proper value)
Yeah, what this really indicates is an incomplete read (file shorter than
expected). Since 11.8, we've improved the error reporting for that, but
that wouldn't in itself fix whatever the underlying problem is.
> 2. That the error is due to running out of temporary space either disk space or maybe temp_buffers?
That could be the proximate cause, although then there would be a bug
that the original write failure wasn't detected. But it seems about
as likely that there's just some inconsistency between what the temp
file writing code wrote and what the reading code expects to read.
Is this a parallelized hash join by any chance? That's new in v11
if memory serves, so it'd be interesting to see if disabling
enable_parallel_hash changes anything.
Anyway, I'd counsel updating to current (11.11), and then if you can
still reproduce the problem, try to reduce it to a self-contained
test case.
regards, tom lane
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-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, Reid.Thompson@omnicell.com
Subject: Re: could not read from hash-join temporary file: SUCCESS && DB goes into recovery mode
In-Reply-To: <208065.1618840431@sss.pgh.pa.us>
References: <SJ0PR11MB484824AE16D5EF21DD539F579E499@SJ0PR11MB4848.namprd11.prod.outlook.com> <208065.1618840431@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