Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs9JD-0000p2-Tx for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Oct 2015 13:01:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zs9JD-0005UZ-G1 for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Oct 2015 13:01:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zs9Ht-0002U8-79; Fri, 30 Oct 2015 13:00:09 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zs9Hl-0007Wp-RX; Fri, 30 Oct 2015 13:00:08 +0000 Received: from intern.anarazel.de (unknown [213.164.8.43]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 1C01A860002; Fri, 30 Oct 2015 14:00:00 +0100 (CET) Date: Fri, 30 Oct 2015 13:59:59 +0100 From: Andres Freund To: Michael Paquier Cc: Vladimir Borodin , Robert Haas , Oleksii Kliukin , pgsql-admin , PostgreSQL-development Subject: Re: [ADMIN] Replication slots and isolation levels Message-ID: <20151030125959.GA6677@alap3.anarazel.de> References: <52570F37-5C6E-40F9-A2E3-01858705B3E8@simply.name> <0E6700E4-195C-450D-A051-D19F92B2A9D7@simply.name> <86D2C6D2-C332-4BF9-A82E-C9F7FA471712@simply.name> <088B276D-4073-4582-82D4-08F50E43B426@simply.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Pg-Spam-Score: -5.2 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2015-10-30 13:42:19 +0100, Michael Paquier wrote: > On Fri, Oct 30, 2015 at 12:40 PM, Vladimir Borodin wrote: > > On Thu, Oct 29, 2015 at 3:29 PM, Oleksii Kliukin wrote: > >> Could it be a consequence of how REPEATABLE READ transactions handle > >> snapshots? With REPEATABLE READ the snapshot is acquired only once at the > >> beginning of a transaction; a READ COMMITTED transaction re-evaluates its > >> snapshot with each new command. > > > > I still don’t fully understand why is it so (the problem occurs while > > running only one SELECT-statement in READ COMMITED so only one snapshot is > > taken), but if is expected behavior shouldn’t the documentation mention that > > using READ COMMITTED (which is the default) you may still get conflicts with > > recovery while using replication slots? > > Replication slots and hot_standby_feedback are two different unrelated > concepts, slots being aimed at retaining WAL. Uh. Slots also retain the xmin horizon if hot_standby_feedback is enabled on the standby? > I guess that's the origin of your confusion: > http://www.postgresql.org/message-id/20150616192141.GD2626@alap3.anarazel.de That just says what I said above, I don't see how this makes replication slots and hs feedback unrelated? Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers