Re: Index contains unexpected zero page at block

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Victor Blomqvist <vb(at)viblo(dot)se>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Index contains unexpected zero page at block
Date: 2015-12-17 20:48:49
Message-ID: CAHyXU0wOEsvHSUtLi+S3g_rPf4V8KKEwYziLP6Y_aJThPhdaKg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Dec 16, 2015 at 9:48 PM, Victor Blomqvist <vb(at)viblo(dot)se> wrote:
> From time to time I get this and similar errors in my Postgres log file:
>
> < 2015-12-17 07:45:05.976 CST >ERROR: index
> "user_pictures_picture_dhash_idx" contains unexpected zero page at block
> 123780
> < 2015-12-17 07:45:05.976 CST >HINT: Please REINDEX it.
> < 2015-12-17 07:45:05.976 CST >CONTEXT: PL/pgSQL function
> select_pictures_by_dhash(bigint,integer,integer) line 3 at RETURN QUERY
> < 2015-12-17 07:45:05.976 CST >STATEMENT: SELECT * FROM
> select_pictures_by_dhash(8559245352688506666,100,0)
>
> I have tried to recreate the index (create new index, drop the old one), but
> it doesnt help, the error comes back anyway. Also, its not there all the
> time, when I tried to rerun the statement from the logfile above a couple of
> hours later it worked fine without any error.
>
> The server is a read slave, set up with streaming replication. We run
> PostgreSQL 9.3.5.

Step #1: Install 9.3.10 on both servers.

If the issue is still then reproducing, then this problem gets a lot
more interesting. Are you running with checksums on?

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2015-12-17 22:46:16 Re: Error promoting slave on cascading replication using replication slots
Previous Message anj patnaik 2015-12-17 17:28:18 how to create dump of selected rows from a table