pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
Cc: pdrolet@infodata.ca
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13143: Cannot stop and restart a streaming server with a replication slot
Date: Mon, 27 Apr 2015 13:00:15 -0300
Message-ID: <20150427160015.GW4369@alvh.no-ip.org> (raw)
In-Reply-To: <20150427151229.GG18789@awork2.anarazel.de>
References: <20150424101006.2556.60897@wrigleys.postgresql.org>
	<20150425123357.GC12723@awork2.anarazel.de>
	<20150427144447.GT4369@alvh.no-ip.org>
	<20150427151229.GG18789@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (10+ messages)  latest in thread

Message-ID: <20150427160015.GW4369@alvh.no-ip.org>
Permalink:  ../20150427160015.GW4369@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20150427160015.GW4369@alvh.no-ip.org

 · 

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 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: alvherre@2ndquadrant.com, andres@anarazel.de, pdrolet@infodata.ca
  Subject: Re: BUG #13143: Cannot stop and restart a streaming server with a replication slot
  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>

* 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