From: | wangchuanting <wangchuanting(at)huawei(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #14680: startup process on standby encounter a deadlock of TwoPhaseStateLock when redo 2PC xlog |
Date: | 2017-06-05 11:32:17 |
Message-ID: | 1496662337584-5964796.post@n3.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
Hi, Michael
I don't understand why the patch remove TwoPhaseStateLock in MarkAsPrepared.
if so:
1. does it need remove lock acquire in MarkAsPreparing also?
2. MarkAsPrepared will call ProcArrayAdd, and in ProcArrayAdd it acquires
ProcArrayLock, we should carefully handle the lock sequence about these two
locks.
--
View this message in context: http://www.postgresql-archive.org/BUG-14680-startup-process-on-standby-encounter-a-deadlock-of-TwoPhaseStateLock-when-redo-2PC-xlog-tp5964069p5964796.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
From | Date | Subject | |
---|---|---|---|
Next Message | gdutton | 2017-06-05 13:09:54 | BUG #14690: Client GSSAPI / Kerberos auth crash |
Previous Message | Andres Freund | 2017-06-05 08:43:37 | Re: BUG #14687: pg_xlogdump does only count "main data" for record length and leading to incorrect statistics |
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2017-06-05 11:35:24 | Re: retry shm attach for windows (WAS: Re: OK, so culicidae is *still* broken) |
Previous Message | Magnus Hagander | 2017-06-05 11:28:38 | Re: retry shm attach for windows (WAS: Re: OK, so culicidae is *still* broken) |