From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: exclusion@gmail.com
Subject: BUG #17212: pg_amcheck fails on checking temporary relations
Date: Sat, 02 Oct 2021 11:00:02 +0000
Message-ID: <17212-34dd4a1d6bba98bf@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 17212
Logged by: Alexander Lakhin
Email address: exclusion@gmail.com
PostgreSQL version: 14.0
Operating system: Ubuntu 20.04
Description:
When pg_amcheck runs against a database containing temporary tables:
echo "
CREATE TEMP TABLE t(i int);
CREATE INDEX t_idx ON t(i);
INSERT INTO t VALUES (1);
SELECT pg_sleep(5);
" | psql &
pg_amcheck --install-missing -a --heapallindexed --parent-check
--rootdescend --progress || echo "FAIL"
it fails with the following errors:
btree index "regression.pg_temp_4.t_idx":0%)
ERROR: cannot access temporary tables of other sessions
DETAIL: Index "t_idx" is associated with temporary relation.
heap table "regression.pg_temp_4.t":
ERROR: cannot access temporary tables of other sessions
779/779 relations (100%), 2806/2806 pages (100%)
FAIL
Although you can add --exclude-relation=*.pg_temp*.*, this behaviour differs
from the behaviour of pg_dump and friends, which skip such relations
silently.
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, exclusion@gmail.com
Subject: Re: BUG #17212: pg_amcheck fails on checking temporary relations
In-Reply-To: <17212-34dd4a1d6bba98bf@postgresql.org>
* 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