From: Michael Paquier <michael@paquier.xyz>
To: raj 1988 <raj888389@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pg_ctl promote causes error "could not read block" (PG 9.5.0 and 9.5.4)
Date: Thu, 29 Mar 2018 09:31:13 +0900
Message-ID: <20180329003113.GE2102@paquier.xyz> (raw)
In-Reply-To: <CANKk2Ss8dB5S4tL3+rUyr+FHP36AxNr+dOGcXjhFU53np6BeGw@mail.gmail.com>
References: <CANKk2Ss8dB5S4tL3+rUyr+FHP36AxNr+dOGcXjhFU53np6BeGw@mail.gmail.com>
On Wed, Mar 28, 2018 at 09:36:11AM -0700, raj 1988 wrote:
> Are we hitting some bug? tried to look around but not able to confirm if we
> are hitting a bug or not. For us this is happening consistently on
> different servers whenever we do pg_ctl promote and then it block WRITE on
> that table.
This has the strong smell of the FSM bug fixed in 9.5.5:
https://www.postgresql.org/docs/devel/static/release-9-5-5.html
So, in order to get things right:
1) Update to the latest version of Postgres 9.5.
2) Make sure that your cluster gets in a clean state. There are
instructions here:
https://wiki.postgresql.org/wiki/Free_Space_Map_Problems> As of now we get rid of the error either by doing vacuum full or CTAS, but
> i am afraid what we will do in case this happens to our few TB tables.
This rebuilds the file-space map, which is why it goes away. You really
want to do the work I am mentioning above to get back to a clean state.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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-general@postgresql.org
Cc: michael@paquier.xyz, raj888389@gmail.com
Subject: Re: pg_ctl promote causes error "could not read block" (PG 9.5.0 and 9.5.4)
In-Reply-To: <20180329003113.GE2102@paquier.xyz>
References: <CANKk2Ss8dB5S4tL3+rUyr+FHP36AxNr+dOGcXjhFU53np6BeGw@mail.gmail.com> <20180329003113.GE2102@paquier.xyz>
* 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