Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YmmoC-0002s9-V3 for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Apr 2015 17:27:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YmmoC-0003qT-EO for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Apr 2015 17:27:04 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YmmFT-0000rq-4N for pgsql-bugs@postgresql.org; Mon, 27 Apr 2015 16:51:11 +0000 Received: from relais.videotron.ca ([24.201.245.36]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1YmmFQ-0005zm-0Q for pgsql-bugs@postgresql.org; Mon, 27 Apr 2015 16:51:09 +0000 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Received: from [192.168.1.129] ([69.70.45.130]) by VL-VM-MR003.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0NNH004F95G6EE20@VL-VM-MR003.ip.videotron.ca> for pgsql-bugs@postgresql.org; Mon, 27 Apr 2015 12:50:30 -0400 (EDT) Subject: Re: [SPAM] Re: BUG #13143: Cannot stop and restart a streaming server with a replication slot From: Patrice Drolet X-Mailer: iPad Mail (12F69) In-reply-to: <20150427160015.GW4369@alvh.no-ip.org> Date: Mon, 27 Apr 2015 12:50:32 -0400 Cc: Andres Freund , "pgsql-bugs@postgresql.org" Content-transfer-encoding: quoted-printable Message-id: 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> To: Alvaro Herrera X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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.=20 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=3Doff and I could start pg. but this is not a good permanent so= lution! Envoy=C3=A9 de mon iPad > Le 2015-04-27 =C3=A0 12:00, Alvaro Herrera a = =C3=A9crit : >=20 > 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). >>=20 >> Patrice has since replied with log_error_verbosity=3Dverbose logs, but >> that reply is probably still stuck in moderation: >=20 > Ah, sorry about that. Approved. >=20 >> 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. >=20 > Ah, fsync_fname() explicitely defends against this. >=20 >> So that's easy enough fixed. >=20 > Nice. >=20 > --=20 > =C3=81lvaro Herrera http://www.2ndQuadrant.com/ > PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs