pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pg_ctl promote causes error "could not read block" (PG 9.5.0 and 9.5.4) 2+ messages / 2 participants [nested] [flat]
* pg_ctl promote causes error "could not read block" (PG 9.5.0 and 9.5.4) @ 2018-03-28 16:36 raj 1988 <raj888389@gmail.com> 2018-03-29 00:31 ` Re: pg_ctl promote causes error "could not read block" (PG 9.5.0 and 9.5.4) Michael Paquier <michael@paquier.xyz> 0 siblings, 1 reply; 2+ messages in thread From: raj 1988 @ 2018-03-28 16:36 UTC (permalink / raw) To: pgsql-general@lists.postgresql.org Hi there, we are running into this weird issue of table getting on READ ONLY mode with below error: ERROR: could not read block 54 in file "base/<databaseoid>/215619": read only 0 of 8192 bytes We are facing this whenever we promote a streaming standby using pg_ctl promote command, and this is happing on PG 9.5.0 and 9.5.4 and OEL 6.9 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. 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. Thanks a lot in advance -raj ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pg_ctl promote causes error "could not read block" (PG 9.5.0 and 9.5.4) 2018-03-28 16:36 pg_ctl promote causes error "could not read block" (PG 9.5.0 and 9.5.4) raj 1988 <raj888389@gmail.com> @ 2018-03-29 00:31 ` Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2018-03-29 00:31 UTC (permalink / raw) To: raj 1988 <raj888389@gmail.com>; +Cc: pgsql-general@lists.postgresql.org 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-03-29 00:31 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-03-28 16:36 pg_ctl promote causes error "could not read block" (PG 9.5.0 and 9.5.4) raj 1988 <raj888389@gmail.com> 2018-03-29 00:31 ` Michael Paquier <michael@paquier.xyz>
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