From: | Andres Freund <andres(at)2ndquadrant(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Greg Stark <stark(at)mit(dot)edu>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> |
Subject: | Re: Recovery inconsistencies, standby much larger than primary |
Date: | 2014-02-07 10:18:33 |
Message-ID: | 20140207101833.GV28649@alap3.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2014-02-06 20:06:03 -0500, Tom Lane wrote:
> Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> > That reminds me, not that I directly see how it could be responsible,
> > there's still 20131029011623(dot)GJ20248(at)awork2(dot)anarazel(dot)de ff. around. I
> > don't think we came to a agreement in that thread how to fix the
> > problem.
>
> Hm, yeah. I'm not sure I believe Heikki's argument that we need to avoid
> closing the smgr relation. If that stuff is being used in any
> performance-critical paths then we've got trouble already.
Me neither. And I still am hesitant to start doing an unconditional
smgropen(rnode, InvalidBackendId), but maybe that's also misplaced. My
gut feeling would either to go with the very simple closing the smgr
(which was the case before the current form of the fake relcache
infrastructure!) or add support of unowning the smgr rel (as in
20131105193632(dot)GD14819(at)awork2(dot)anarazel(dot)de).
After being slightly more awake it's even harder to see how it could be
the cause for this thread's problem. True, it's a rogue write into
palloc()ed memory that's used by somebody else, but afaics it will only
ever write a NULL. While not impossible it seems a bit of a stretch how
that could cause the symptoms.
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2014-02-07 11:27:38 | Re: INSERT...ON DUPLICATE KEY LOCK FOR UPDATE |
Previous Message | Andres Freund | 2014-02-07 10:06:12 | Re: specifying repeatable read in PGOPTIONS |