PostgreSQL 9.3 - reindex problem

From: "For(at)ll" <forall(at)stalowka(dot)info>
To: pgsql-admin(at)postgresql(dot)org
Subject: PostgreSQL 9.3 - reindex problem
Date: 2018-08-02 09:54:16
Message-ID: pjuk85$u34$1@blaine.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

I have problem with postgresql-9.3 in our clients. They suddenly lost
power connection and all servers halt.. I repiar xfs filesystem on
CentOS7 postgresql partition. Now when I want run reindex database I
receive error:

reindexdb -d ex200
NOTICE: table "pg_catalog.pg_class" was reindexed
reindexdb: reindexing of database "ex200" failed: ERROR: invalid page
in block 101 of relation base/157934/12685

I want to try run dump and save database on plaintext but when I start
pg_dump it's hang...

pg_dump -a -v -d ex200 > ex200.sql
pg_dump: last built-in OID is 16383
pg_dump: reading extensions
pg_dump: identifying extension members
pg_dump: reading schemas
pg_dump: reading user-defined tables
pg_dump: reading user-defined functions

Any ideas what can I do.. Client told me they have a backup from 2
montgs ago....

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Amit Langote 2018-08-02 10:38:16 Re: Fwd: Problem with a "complex" upsert
Previous Message Fabio Pardi 2018-08-02 08:05:46 Re: postgres port 5434 not being allowed when remote server is accessing