Re: [HACKERS] Replication slots and isolation levels

From: Vladimir Borodin <root(at)simply(dot)name>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Oleksii Kliukin <alexk(at)hintbits(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Replication slots and isolation levels
Date: 2015-10-30 11:40:23
Message-ID: 088B276D-4073-4582-82D4-08F50E43B426@simply.name
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers


> 30 окт. 2015 г., в 14:30, Robert Haas <robertmhaas(at)gmail(dot)com> написал(а):
>
> On Thu, Oct 29, 2015 at 3:29 PM, Oleksii Kliukin <alexk(at)hintbits(dot)com> 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 bet that's exactly it.

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 COMMITED (which is the default) you may still get conflicts with recovery while using replication slots?

>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company

--
May the force be with you…
https://simply.name

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Paquier 2015-10-30 12:42:19 Re: [ADMIN] Replication slots and isolation levels
Previous Message Robert Haas 2015-10-30 11:30:04 Re: [HACKERS] Replication slots and isolation levels

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleksandr Shulgin 2015-10-30 11:50:00 Re: Replication connection URI?
Previous Message Robert Haas 2015-10-30 11:30:04 Re: [HACKERS] Replication slots and isolation levels