Re: Error with index on unlogged table - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Error with index on unlogged table
Date
Msg-id 20150326141341.GI451@alap3.anarazel.de
Whole thread Raw
In response to Re: Error with index on unlogged table  (Thom Brown <thom@linux.com>)
Responses Re: Error with index on unlogged table  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
On 2015-03-26 13:55:22 +0000, Thom Brown wrote:
> I still, however, have a problem with the separate and original issue of:
> 
> # insert into utest (thing) values ('moomoo');
> ERROR:  index "utest_pkey" contains unexpected zero page at block 0
> HINT:  Please REINDEX it.
> 
> I don't see why the user should need to go re-indexing all unlogged tables
> each time a standby is promoted.  The index should just be empty and ready
> to use.

There's definitely something rather broken here. Investigating.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Thom Brown
Date:
Subject: Re: Error with index on unlogged table
Next
From: Tom Lane
Date:
Subject: Re: controlling psql's use of the pager a bit more