pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Radlowski <adamr@informatyka.gdansk.pl>
To: MG <pgsql-admin@carladata.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: ERROR:  invalid page header in block
Date: Tue, 10 Oct 2006 08:48:31 +0200
Message-ID: <452B423F.8050108@informatyka.gdansk.pl> (raw)
In-Reply-To: <001201c6eb73$7f2845f0$340aa8c0@geisslinger>
References: <001201c6eb73$7f2845f0$340aa8c0@geisslinger>

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
>




view thread (2+ messages)

Message-ID: <452B423F.8050108@informatyka.gdansk.pl>
Permalink:  ../452B423F.8050108@informatyka.gdansk.pl/
Also on:    postgresql.org/message-id/452B423F.8050108@informatyka.gdansk.pl

 · 

reply

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-admin@postgresql.org
  Cc: adamr@informatyka.gdansk.pl, pgsql-admin@carladata.de
  Subject: Re: ERROR:  invalid page header in block
  In-Reply-To: <452B423F.8050108@informatyka.gdansk.pl>
  References: <001201c6eb73$7f2845f0$340aa8c0@geisslinger> <452B423F.8050108@informatyka.gdansk.pl>

* 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