[BUG] standby node can not provide service even it replays all log files

From: Thunder <thunder1(at)126(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: [BUG] standby node can not provide service even it replays all log files
Date: 2019-10-21 07:40:24
Message-ID: 54405037.5bef.16ded428de1.Coremail.thunder1@126.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,
I found this issue when restart standby node and then try to connect it.
It return "psql: FATAL: the database system is starting up".

The steps to reproduce this issue.
1. Create a session to run uncommit_trans.sql
2. Create the other session to do checkpoint
3. Restart standby node.
4. standby node can not provide service even it has replayed all log files.

I think the issue is in ProcArrayApplyRecoveryInfo function.
The standby state is in STANDBY_SNAPSHOT_PENDING, but the lastOverflowedXid is not committed.

Any idea to fix this issue?
Thanks.

Attachment Content-Type Size
uncommit_trans.sql application/octet-stream 4.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2019-10-21 07:43:23 Incorrect relation locked at beginning of REINDEX CONCURRENTLY
Previous Message Pavel Stehule 2019-10-21 07:22:21 Re: dropdb --force