pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Oleksii Kliukin <alexk@hintbits.com>
To: Vladimir Borodin <root@simply.name>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [ADMIN] Replication slots and isolation levels
Date: Thu, 29 Oct 2015 15:29:43 +0100
Message-ID: <B0D38B8D-C174-44EE-9F84-31B8EE68AA8C@hintbits.com> (raw )
In-Reply-To: <86D2C6D2-C332-4BF9-A82E-C9F7FA471712@simply.name >
References: <7F74C5EA-6741-44FC-B6C6-E96F18D761FB@simply.name >
<BE95C564-0D49-462A-A57C-4C9DF6238F71@simply.name >
<CAB7nPqTW_v4odZrRX7vYtf5OWVBwzK=oDffwikgrOunQFsa8JA@mail.gmail.com >
<52570F37-5C6E-40F9-A2E3-01858705B3E8@simply.name >
<CAB7nPqQZAqvwpJ3eQ0BXGdw26fjNuKXXGHijvdahVXreNbsASA@mail.gmail.com >
<0E6700E4-195C-450D-A051-D19F92B2A9D7@simply.name >
<CAB7nPqTSVXR1WQegikpnkATjR3oz8FQE3hUf9RUk+o9VN0+zrQ@mail.gmail.com >
<86D2C6D2-C332-4BF9-A82E-C9F7FA471712@simply.name >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
> On 29 Oct 2015, at 14:39, Vladimir Borodin <root@simply.name> wrote:
>
> f I understand right, with hot_standby_feedback = on standby tells the master xmin of the earliest transaction on standby. And autovacuum worker on master takes it into account when doing vacuum cleanup (because it can see it from pg_replications_slots view), AFAIK with GetOldestXmin function. But I don’t understand why with READ COMMITED transactions xmin in pg_replication_slots view on master continues to increase while with REPEATABLE READ xmin freezes until this transaction finishes.
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.
http://www.postgresql.org/docs/current/static/transaction-iso.html
Kind regards,
--
Oleksii
view thread (19+ messages) latest in thread
Message-ID: <B0D38B8D-C174-44EE-9F84-31B8EE68AA8C@hintbits.com>
Permalink: ../B0D38B8D-C174-44EE-9F84-31B8EE68AA8C@hintbits.com/
Also on: postgresql.org/message-id/B0D38B8D-C174-44EE-9F84-31B8EE68AA8C@hintbits.com
copy link · copy postgr.es
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: alexk@hintbits.com, root@simply.name, michael.paquier@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: [ADMIN] Replication slots and isolation levels
In-Reply-To: <B0D38B8D-C174-44EE-9F84-31B8EE68AA8C@hintbits.com>
* 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