| From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Cc: | exclusion(at)gmail(dot)com |
| Subject: | BUG #17212: pg_amcheck fails on checking temporary relations |
| Date: | 2021-10-02 11:00:02 |
| Message-ID: | 17212-34dd4a1d6bba98bf@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-hackers |
The following bug has been logged on the website:
Bug reference: 17212
Logged by: Alexander Lakhin
Email address: exclusion(at)gmail(dot)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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Euler Taveira | 2021-10-02 14:33:00 | Re: BUG #17211: Partitioned index partition does not inherit table partition tablespace |
| Previous Message | Timo Sirainen | 2021-10-01 20:06:36 | Re: libpq leaks memory for SSL connections |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Fone | 2021-10-02 11:02:57 | Re: pgcrypto support for bcrypt $2b$ hashes |
| Previous Message | Dilip Kumar | 2021-10-02 10:46:31 | Re: pgsql: Document XLOG_INCLUDE_XID a little better |