From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | Dmitry Dolgov <9erthalion6(at)gmail(dot)com> |
Cc: | Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>, Craig Ringer <craig(at)2ndquadrant(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Postgres, fsync, and OSs (specifically linux) |
Date: | 2018-05-22 20:02:07 |
Message-ID: | 20180522200207.ckk4jweczmimphtn@alap3.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2018-05-22 21:58:06 +0200, Dmitry Dolgov wrote:
> > On 22 May 2018 at 20:59, Andres Freund <andres(at)anarazel(dot)de> wrote:
> > On 2018-05-22 20:54:46 +0200, Dmitry Dolgov wrote:
> > Huh? Checkpointer was in SendFsyncRequest()? Coudl you share the
> > backtrace?
>
> Well, that's what I've got from gdb:
> #3 0x000000000077ad08 in WaitLatchOrSocket
> (latch=latch(at)entry=0x0, wakeEvents=wakeEvents(at)entry=4, sock=8,
> timeout=timeout(at)entry=-1, wait_event_info=wait_event_info(at)entry=0) at
> latch.c:385
> #4 0x00000000007152cb in SendFsyncRequest
> (request=request(at)entry=0x7ffe37529f40, fd=fd(at)entry=-1) at
> checkpointer.c:1345
> #5 0x0000000000716223 in AbsorbAllFsyncRequests () at checkpointer.c:1207
Oh, I see. That makes sense. So it's possible to self-deadlock
here. Should be easy to fix... Thanks for finding that one.
> Yes, this patch solves the problem, thanks.
Just avoids it, I'm afraid... It probably can't be hit easily, but the
issue is there...
- Andres
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2018-05-22 20:09:06 | Re: [PATCH] (Windows) psql echoes password when reading from pipe |
Previous Message | Robert Haas | 2018-05-22 20:02:00 | Re: Commit fest 2017-11 |