pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feed From: y39chen <yan-jack.chen@nokia.com>
To: pgsql-general@postgresql.org
Subject: Re: Is there possibility btree_redo with XLOG_BTREE_DELETE done between standby_redo and the end of backup
Date: Thu, 25 May 2017 02:23:09 -0700 (MST)
Message-ID: <1495704189413-5963181.post@n3.nabble.com> (raw )
In-Reply-To: <CAB7nPqT3S_wG3J3GXeaXDgeS1sdwgz52F=Ze+uBbrWX89EO4wQ@mail.gmail.com >
References: <1495609157661-5963011.post@n3.nabble.com >
<2253.1495639128@sss.pgh.pa.us >
<CAB7nPqRLBA9vxT+o2_JOThKzHGbGpmZyTbJBRR1jW5QKq+NeYQ@mail.gmail.com >
<2353.1495640833@sss.pgh.pa.us >
<CAB7nPqT3S_wG3J3GXeaXDgeS1sdwgz52F=Ze+uBbrWX89EO4wQ@mail.gmail.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
Thank you the comments.
We found the panic happened when adding one of our patch.
static int
ProcessStartupPacket(Port *port, bool SSLdone)
{
......
/*
* If we're going to reject the connection due to database state, say so
* now instead of wasting cycles on an authentication exchange. (This also
* allows a pg_ping utility to be written.)
*/
switch (port->canAcceptConnections)
{
case CAC_STARTUP:
ereport(*LOG*,
(errcode(ERRCODE_CANNOT_CONNECT_NOW),
errmsg("the database system is starting up")));
break;
......
}
I understand the patch would accept connection while Postgres master is
still recovering. and it is dangerous in general. When I remove the
patch(be PANIC still). no panic happened. It seems have relationship.
I also noticed there is one post for similar problem discussion.
http://www.postgresql-archive.org/Re-Crash-observed-during-the-start-of-the-Postgres-process-td59582...
<http://www.postgresql-archive.org/Re-Crash-observed-during-the-start-of-the-Postgres-process-td59582... ;
My doubt is Standby is redoing the records in WAL from master. how accept
connection in standby side while recovering would trigger
btree_xlog_delete_get_latestRemovedXid() and panic happen.
I tried to read the postgres code the get the clear map. But still confused.
Are you aware and would you kindly explain the relationship behind? Or give
me some hint how to investigate it?
--
View this message in context: http://www.postgresql-archive.org/Is-there-possibility-btree-redo-with-XLOG-BTREE-DELETE-done-betwee...
Sent from the PostgreSQL - general mailing list archive at Nabble.com.
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
view thread (9+ messages) latest in thread
Message-ID: <1495704189413-5963181.post@n3.nabble.com>
Permalink: ../1495704189413-5963181.post@n3.nabble.com/
Also on: postgresql.org/message-id/1495704189413-5963181.post@n3.nabble.com
copy link · copy postgr.es
reply 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 using the --to and --cc options:
reply via email
To: pgsql-general@postgresql.org
Cc: yan-jack.chen@nokia.com
Subject: Re: Is there possibility btree_redo with XLOG_BTREE_DELETE done between standby_redo and the end of backup
In-Reply-To: <1495704189413-5963181.post@n3.nabble.com>
* 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