From: Tom Lane <tgl@sss.pgh.pa.us>
To: Evan Walter <ewalter@decisionanalyst.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: getting a error message when creating temporary table
Date: Mon, 28 Apr 2014 18:48:29 -0400
Message-ID: <29685.1398725309@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOHVLOGC9tsVzZE4UsbLapKfTcrKrosEuCfB_MQeQ3mw270ZSg@mail.gmail.com>
References: <CAOHVLOGC9tsVzZE4UsbLapKfTcrKrosEuCfB_MQeQ3mw270ZSg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Evan Walter <ewalter@decisionanalyst.com> writes:
> Not sure what is causing this. When we execute:
> CREATE TEMPORARY TABLE test(test_code varchar (255))
> We get
> ERROR: could not read block 6 in file "global/... " read only 0 of 8192
> bytes
What's the exact filename you omitted there, and which PG version is this?
I'm guessing this indicates corruption of pg_shdepend or one of its
indexes, as that seems like the only shared catalog that's really likely
to get touched during a CREATE TEMP TABLE. If you're lucky, it's one of
the indexes, and a REINDEX will fix it.
Have you had any OS-level crashes lately, power failures, etc? Whatever
is corrupted exactly, this shouldn't have happened if filesystem integrity
was being maintained properly.
regards, tom lane
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, ewalter@decisionanalyst.com
Subject: Re: getting a error message when creating temporary table
In-Reply-To: <29685.1398725309@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