Re: ERROR: invalid page header in block - Mailing list pgsql-admin

From Adam Radlowski
Subject Re: ERROR: invalid page header in block
Date
Msg-id 452B423F.8050108@informatyka.gdansk.pl
Whole thread Raw
In response to ERROR: invalid page header in block  ("MG" <pgsql-admin@carladata.de>)
List pgsql-admin
I've tried to do this same thing i "psql" client. It was worked properly.
I'm not sure, but maybe Your table on disk is corrupted.
Does it work simply:
select oid from public.lock
and
select * from public.lock
and
SELECT "oid", * FROM "public"."lock"
?
Your query will be faster makinkg it that way:
SELECT COUNT(*) AS total FROM "public"."lock"
"lock" is not very fine name for table (for ex. You can do inside
transaction: LOCK table public.lock IN SHARE MODE).
Greetings
Adam


MG wrote:

> Hello,
>
> I have the following error and I'm a bit worried:
>
> SELECT COUNT(*) AS total FROM (SELECT "oid", * FROM "public"."lock")
> AS sub
>
>-> ERROR:  invalid page header in block 0 of relation "lock"
>
>delete from lock where bildschirmnr=16
>
>-> ERROR:  invalid page header in block 0 of relation "lock"
>
>Any ideas whats going on?
>
>Thanks for any help
>
>Michaela
>


pgsql-admin by date:

Previous
From: lst_hoe01@kwsoft.de
Date:
Subject: Re: REMOVE PLEASE
Next
From: "Fourat Zouari"
Date:
Subject: Re: [NOVICE] Copying data from table to table (cloned tables)