From: Patrice Drolet <pdrolet@infodata.ca>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: [SPAM] Re: BUG #13143: Cannot stop and restart a streaming server with a replication slot
Date: Mon, 27 Apr 2015 12:50:32 -0400
Message-ID: <D8851338-DC7E-4746-A6DF-DFDBB4E255C4@infodata.ca> (raw)
In-Reply-To: <20150427160015.GW4369@alvh.no-ip.org>
References: <20150424101006.2556.60897@wrigleys.postgresql.org>
<20150425123357.GC12723@awork2.anarazel.de>
<20150427144447.GT4369@alvh.no-ip.org>
<20150427151229.GG18789@awork2.anarazel.de>
<20150427160015.GW4369@alvh.no-ip.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi,
On Windows, this is really easy to have this problem : create a replication slot then try to restart the server. The server will refuse to start.
I checked the file it was not read only. There is nothing I could do to the file or the directory to succeed in restarting pg.
I put fsync=off and I could start pg. but this is not a good permanent solution!
Envoyé de mon iPad
> Le 2015-04-27 à 12:00, Alvaro Herrera <alvherre@2ndquadrant.com> a écrit :
>
> Andres Freund wrote:
>>> On 2015-04-27 11:44:47 -0300, Alvaro Herrera wrote:
>>> I think this is failing in the fsync_fname() call in slot.c line 1045
>>> (REL9_4_STABLE).
>>
>> Patrice has since replied with log_error_verbosity=verbose logs, but
>> that reply is probably still stuck in moderation:
>
> Ah, sorry about that. Approved.
>
>> Hm. I wonder if it's maybe that the file is opened with O_RDONLY? The
>> OSs I have access to don't care - for good reason imo, fsync isn't a
>> write - but it's not inconceivable that windows might.
>
> Ah, fsync_fname() explicitely defends against this.
>
>> So that's easy enough fixed.
>
> Nice.
>
> --
> Álvaro Herrera http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: pdrolet@infodata.ca, alvherre@2ndquadrant.com, andres@anarazel.de
Subject: Re: [SPAM] Re: BUG #13143: Cannot stop and restart a streaming server with a replication slot
In-Reply-To: <D8851338-DC7E-4746-A6DF-DFDBB4E255C4@infodata.ca>
References: <20150424101006.2556.60897@wrigleys.postgresql.org> <20150425123357.GC12723@awork2.anarazel.de> <20150427144447.GT4369@alvh.no-ip.org> <20150427151229.GG18789@awork2.anarazel.de> <20150427160015.GW4369@alvh.no-ip.org> <D8851338-DC7E-4746-A6DF-DFDBB4E255C4@infodata.ca>
* 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