Re: [HACKERS] Replication slots and isolation levels
От | Vladimir Borodin |
---|---|
Тема | Re: [HACKERS] Replication slots and isolation levels |
Дата | |
Msg-id | 088B276D-4073-4582-82D4-08F50E43B426@simply.name обсуждение исходный текст |
Ответ на | Re: [HACKERS] Replication slots and isolation levels (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: [HACKERS] Replication slots and isolation levels
Re: [HACKERS] Replication slots and isolation levels |
Список | pgsql-admin |
30 окт. 2015 г., в 14:30, Robert Haas <robertmhaas@gmail.com> написал(а):On Thu, Oct 29, 2015 at 3:29 PM, Oleksii Kliukin <alexk@hintbits.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?
В списке pgsql-admin по дате отправления: